mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-24 01:04:02 +02:00
Try fixing the Emscripten build.
This commit is contained in:
@@ -46,10 +46,14 @@ static ma_result ma_vfs_debugging_read(ma_vfs* pVFS, ma_vfs_file file, void* pDs
|
|||||||
ma_vfs_debugging* pDebuggingVFS = ma_vfs_debugging_cast(pVFS);
|
ma_vfs_debugging* pDebuggingVFS = ma_vfs_debugging_cast(pVFS);
|
||||||
ma_result result;
|
ma_result result;
|
||||||
|
|
||||||
/* Introduce artificial latency if requested. */
|
/* Introduce artificial latency if requested. Ignored on Emscripten. */
|
||||||
|
#ifndef __EMSCRIPTEN__
|
||||||
|
{
|
||||||
if (pDebuggingVFS->config.latencyInMilliseconds > 0) {
|
if (pDebuggingVFS->config.latencyInMilliseconds > 0) {
|
||||||
ma_sleep(pDebuggingVFS->config.latencyInMilliseconds);
|
ma_sleep(pDebuggingVFS->config.latencyInMilliseconds);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/*printf("READING\n");*/
|
/*printf("READING\n");*/
|
||||||
|
|
||||||
|
|||||||
@@ -112,7 +112,11 @@ int main(int argc, char** argv)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef __EMSCRIPTEN__
|
||||||
|
{
|
||||||
ma_sleep(20000);
|
ma_sleep(20000);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
for (size_t i = 0; i < sounds.size(); i += 1) {
|
for (size_t i = 0; i < sounds.size(); i += 1) {
|
||||||
ma_sound_uninit(sounds[i]);
|
ma_sound_uninit(sounds[i]);
|
||||||
|
|||||||
Reference in New Issue
Block a user