qemu-e2k/audio
Volker Rümelin 9833438ef6 audio: restore mixing-engine playback buffer size
Commit ff095e5231 "audio: api for mixeng code free backends"
introduced another FIFO for the audio subsystem with exactly the
same size as the mixing-engine FIFO. Most audio backends use
this generic FIFO. The generic FIFO used together with the
mixing-engine FIFO doubles the audio FIFO size, because that's
just two independent FIFOs connected together in series.

For audio playback this nearly doubles the playback latency.

This patch restores the effective mixing-engine playback buffer
size to a pre v4.2.0 size by only accepting the amount of
samples for the mixing-engine queue which the downstream queue
accepts.

Signed-off-by: Volker Rümelin <vr_qemu@t-online.de>
Reviewed-by: Akihiko Odaki <akihiko.odaki@gmail.com>
Message-Id: <20220301191311.26695-10-vr_qemu@t-online.de>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
2022-03-04 11:05:13 +01:00
..
alsaaudio.c audio: restore mixing-engine playback buffer size 2022-03-04 11:05:13 +01:00
audio_int.h audio: restore mixing-engine playback buffer size 2022-03-04 11:05:13 +01:00
audio_legacy.c
audio_template.h audio: add "dbus" audio backend 2021-12-21 10:50:22 +04:00
audio_win_int.c dsoundaudio: fix log message 2021-01-15 11:25:22 +01:00
audio_win_int.h
audio.c audio: restore mixing-engine playback buffer size 2022-03-04 11:05:13 +01:00
audio.h
coreaudio.c audio: restore mixing-engine playback buffer size 2022-03-04 11:05:13 +01:00
dbusaudio.c audio: add "dbus" audio backend 2021-12-21 10:50:22 +04:00
dsound_template.h dsoundaudio: replace GetForegroundWindow() 2021-01-15 11:25:22 +01:00
dsoundaudio.c dsoundaudio: fix crackling audio recordings 2022-01-13 10:47:52 +01:00
jackaudio.c audio: restore mixing-engine playback buffer size 2022-03-04 11:05:13 +01:00
meson.build audio: add "dbus" audio backend 2021-12-21 10:50:22 +04:00
mixeng_template.h
mixeng.c
mixeng.h
noaudio.c audio: restore mixing-engine playback buffer size 2022-03-04 11:05:13 +01:00
ossaudio.c audio: restore mixing-engine playback buffer size 2022-03-04 11:05:13 +01:00
paaudio.c paaudio: increase default latency to 46ms 2022-03-04 11:05:13 +01:00
rate_template.h
sdlaudio.c audio: restore mixing-engine playback buffer size 2022-03-04 11:05:13 +01:00
spiceaudio.c modules: add audio module annotations 2021-07-09 18:20:27 +02:00
trace-events audio: add "dbus" audio backend 2021-12-21 10:50:22 +04:00
trace.h
wavaudio.c audio: restore mixing-engine playback buffer size 2022-03-04 11:05:13 +01:00
wavcapture.c