Update AudioMain.cpp

This commit is contained in:
Frank-74 2017-09-22 22:36:54 +01:00 committed by GitHub
parent 1cb0ff0a49
commit be8b97983a
1 changed files with 7 additions and 3 deletions

View File

@ -106,8 +106,12 @@ EXPORT void CALL AiLenChanged(void)
EXPORT uint32_t CALL AiReadLength(void)
{
WriteTrace(TraceAudioInterface, TraceDebug, "Called");
return 0;
WriteTrace(TraceAudioInterface, TraceDebug, "Start");
if (g_SoundDriver == NULL)
{
return 0;
}
return g_SoundDriver->AI_ReadLength();
}
EXPORT void CALL AiUpdate(int32_t Wait)
@ -208,4 +212,4 @@ extern "C" void UseUnregisteredSetting(int /*SettingID*/)
#ifdef _WIN32
DebugBreak();
#endif
}
}