Chromium needs a larger audio buffer (#1300)
* Chromium needs a larger audio buffer: https://github.com/dr-soft/miniaudio/issues/150 * changed PLATFORM_WEB to __EMSCRIPTEN__
This commit is contained in:
parent
b4ff6fdde3
commit
86a8f1d5d5
@ -419,6 +419,9 @@ void InitAudioDevice(void)
|
||||
config.sampleRate = AUDIO_DEVICE_SAMPLE_RATE;
|
||||
config.dataCallback = OnSendAudioDataToDevice;
|
||||
config.pUserData = NULL;
|
||||
#if defined(__EMSCRIPTEN__)
|
||||
config.periodSizeInMilliseconds = 33;
|
||||
#endif
|
||||
|
||||
result = ma_device_init(&AUDIO.System.context, &config, &AUDIO.System.device);
|
||||
if (result != MA_SUCCESS)
|
||||
|
Loading…
Reference in New Issue
Block a user