Fix #20223: Reduce amount of audio samples to 256 to avoid high latency

This commit is contained in:
ζeh Matt 2023-05-18 17:22:11 +03:00
parent 053c00218f
commit a51d8066bf
No known key found for this signature in database
GPG Key ID: 18CE582C71A225B0
1 changed files with 1 additions and 1 deletions

View File

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