mirror of https://github.com/OpenRCT2/OpenRCT2.git
Fix #20223: Reduce amount of audio samples to 256 to avoid high latency
This commit is contained in:
parent
053c00218f
commit
a51d8066bf
|
@ -30,7 +30,7 @@ void AudioMixer::Init(const char* device)
|
|||
want.freq = 44100;
|
||||
want.format = AUDIO_S16SYS;
|
||||
want.channels = 2;
|
||||
want.samples = 4096;
|
||||
want.samples = 256;
|
||||
want.callback = [](void* arg, uint8_t* dst, int32_t length) -> void {
|
||||
auto* mixer = static_cast<AudioMixer*>(arg);
|
||||
mixer->GetNextAudioChunk(dst, static_cast<size_t>(length));
|
||||
|
|
Loading…
Reference in New Issue