Update AudioMain.cpp

This commit is contained in:
Frank-74 2017-09-23 04:30:34 +01:00 committed by GitHub
parent be8b97983a
commit a7f7ea5058
1 changed files with 6 additions and 5 deletions

View File

@ -107,11 +107,12 @@ EXPORT void CALL AiLenChanged(void)
EXPORT uint32_t CALL AiReadLength(void) EXPORT uint32_t CALL AiReadLength(void)
{ {
WriteTrace(TraceAudioInterface, TraceDebug, "Start"); WriteTrace(TraceAudioInterface, TraceDebug, "Start");
if (g_SoundDriver == NULL) if (g_SoundDriver == NULL)
{ {
return 0; return 0;
} }
return g_SoundDriver->AI_ReadLength(); WriteTrace(TraceAudioInterface, TraceDebug, "Done (res: %d)", g_SoundDriver->AI_ReadLength());
return g_SoundDriver->AI_ReadLength();
} }
EXPORT void CALL AiUpdate(int32_t Wait) EXPORT void CALL AiUpdate(int32_t Wait)