Explorar el Código

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 hace 1 semana
padre
commit
3df5a975ee
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. +1
    -0
      src/raudio.c

+ 1
- 0
src/raudio.c Ver fichero

@ -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)

Cargando…
Cancelar
Guardar