From a7f7ea5058dbc9d17cee6ce7c4b311a302c2f8d4 Mon Sep 17 00:00:00 2001 From: Frank-74 Date: Sat, 23 Sep 2017 04:30:34 +0100 Subject: [PATCH] Update AudioMain.cpp --- Source/Project64-audio/AudioMain.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Source/Project64-audio/AudioMain.cpp b/Source/Project64-audio/AudioMain.cpp index b4923a2aa..efc63048a 100644 --- a/Source/Project64-audio/AudioMain.cpp +++ b/Source/Project64-audio/AudioMain.cpp @@ -107,11 +107,12 @@ EXPORT void CALL AiLenChanged(void) EXPORT uint32_t CALL AiReadLength(void) { WriteTrace(TraceAudioInterface, TraceDebug, "Start"); - if (g_SoundDriver == NULL) - { - return 0; - } - return g_SoundDriver->AI_ReadLength(); + if (g_SoundDriver == NULL) + { + return 0; + } + WriteTrace(TraceAudioInterface, TraceDebug, "Done (res: %d)", g_SoundDriver->AI_ReadLength()); + return g_SoundDriver->AI_ReadLength(); } EXPORT void CALL AiUpdate(int32_t Wait)