Просмотр исходного кода

Audio: Stop forcing fixed sized processing callbacks.

There is no requirement for raylib to have guaranteed fixed sized
audio processing. By disabling it, audio processing can be made more
efficient by not having to run the data through an internal intermediary
buffer.
pull/5577/head
David Reid 2 дней назад
Родитель
Сommit
3df5a975ee
1 измененных файлов: 1 добавлений и 0 удалений
  1. +1
    -0
      src/raudio.c

+ 1
- 0
src/raudio.c Просмотреть файл

@ -481,6 +481,7 @@ void InitAudioDevice(void)
config.dataCallback = OnSendAudioDataToDevice;
config.pUserData = NULL;
config.noPreSilencedOutputBuffer = true; // raylib pre-silences the output buffer manually
config.noFixedSizedCallback = true; // raylib does not require fixed sized callback guarantees. This bypasses an internal intermediary buffer
result = ma_device_init(&AUDIO.System.context, &config, &AUDIO.System.device);
if (result != MA_SUCCESS)

Загрузка…
Отмена
Сохранить