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.
This commit is contained in:
parent
92bfbfddd6
commit
3df5a975ee
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user