Update AudioMain.cpp
This commit is contained in:
parent
1cb0ff0a49
commit
be8b97983a
|
@ -106,8 +106,12 @@ EXPORT void CALL AiLenChanged(void)
|
||||||
|
|
||||||
EXPORT uint32_t CALL AiReadLength(void)
|
EXPORT uint32_t CALL AiReadLength(void)
|
||||||
{
|
{
|
||||||
WriteTrace(TraceAudioInterface, TraceDebug, "Called");
|
WriteTrace(TraceAudioInterface, TraceDebug, "Start");
|
||||||
return 0;
|
if (g_SoundDriver == NULL)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
return g_SoundDriver->AI_ReadLength();
|
||||||
}
|
}
|
||||||
|
|
||||||
EXPORT void CALL AiUpdate(int32_t Wait)
|
EXPORT void CALL AiUpdate(int32_t Wait)
|
||||||
|
@ -208,4 +212,4 @@ extern "C" void UseUnregisteredSetting(int /*SettingID*/)
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
DebugBreak();
|
DebugBreak();
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue