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

This commit is contained in:
ζeh Matt committed 2023-05-18 17:22:11 +03:00
1 parent 053c00218f
commit a51d8066bf
1 file changed
+1 -1
+1 -1
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));