Cannot ma_sound_init_from_data_source
properly on the web.
#653
-
After successful initialization of engine and decoder from mp3 memory, if (ma_engine_init(NULL, &engine) != MA_SUCCESS)
goto error;
ma_decoder_config dec_config = ma_decoder_config_init(
engine.pDevice->playback.format,
engine.pDevice->playback.channels,
engine.sampleRate);
if (ma_decoder_init_memory(data, data_size, &dec_config, &decoder) != MA_SUCCESS)
goto error;
if (ma_sound_init_from_data_source(&engine, &decoder, MA_SOUND_FLAG_NO_PITCH | MA_SOUND_FLAG_NO_SPATIALIZATION, NULL, &wave) != MA_SUCCESS)
goto error; // an error occurs here |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
What does |
Beta Was this translation helpful? Give feedback.
-
Oh, it was my fault. After enabling the extra emscripten debug, I noticed a stack overflow. Sorry for the inconvenience. |
Beta Was this translation helpful? Give feedback.
Oh, it was my fault. After enabling the extra emscripten debug, I noticed a stack overflow. Sorry for the inconvenience.