فهرست منبع

Downgrade error to warning when not in release

When the user is creating their project a missing init.bnk will not crash the engine, it just prevents audio from working.

Signed-off-by: Alex Peterson <[email protected]>
Alex Peterson 1 سال پیش
والد
کامیت
c78060f0ac
1فایلهای تغییر یافته به همراه4 افزوده شده و 0 حذف شده
  1. 4 0
      Gems/AudioEngineWwise/Code/Source/Engine/AudioSystemImpl_wwise.cpp

+ 4 - 0
Gems/AudioEngineWwise/Code/Source/Engine/AudioSystemImpl_wwise.cpp

@@ -565,7 +565,11 @@ namespace Audio
         if (!IS_WWISE_OK(akResult))
         {
             // This does not qualify for a fallback to the 'Null' audio implementation!
+#if defined(WWISE_RELEASE)
             AZLOG_ERROR("Wwise failed to load %s, returned AKRESULT %d", Wwise::InitBank, akResult);
+#else
+            AZLOG_WARN("Wwise failed to load %s, returned AKRESULT %d. Have you generated Wwise audio banks?", Wwise::InitBank, akResult);
+#endif
             m_initBankID = AK_INVALID_BANK_ID;
         }