mirror of
https://github.com/raysan5/raylib.git
synced 2025-11-23 18:46:20 +00:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user