瀏覽代碼

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__
pull/1306/head
Random 4 年之前
committed by GitHub
父節點
當前提交
86a8f1d5d5
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: 4AEE18F83AFDEB23
共有 1 個檔案被更改,包括 3 行新增0 行删除
  1. +3
    -0
      src/raudio.c

+ 3
- 0
src/raudio.c 查看文件

@ -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…
取消
儲存