aboutsummaryrefslogtreecommitdiff
path: root/python/scripts
diff options
context:
space:
mode:
authorVolker Rümelin <vr_qemu@t-online.de>2025-05-15 07:44:25 +0200
committerMarc-André Lureau <marcandre.lureau@redhat.com>2025-05-25 11:28:28 +0200
commitccb4fec0e5f233cb61a83b3af59ae11716ea06c0 (patch)
treeeb578f2360b70ad25c55699de238f17a55b2e229 /python/scripts
parent5ddd6c8dc849b4af44bd06840c9133d64e62c27c (diff)
downloadqemu-ccb4fec0e5f233cb61a83b3af59ae11716ea06c0.zip
qemu-ccb4fec0e5f233cb61a83b3af59ae11716ea06c0.tar.gz
qemu-ccb4fec0e5f233cb61a83b3af59ae11716ea06c0.tar.bz2
audio: fix size calculation in AUD_get_buffer_size_out()
The buffer size calculated by AUD_get_buffer_size_out() is often incorrect. sw->hw->samples * sw->hw->info.bytes_per_frame is the size of the mixing engine buffer in audio frames multiplied by the size of one frame of the audio backend. Due to resampling or format conversion, the size of the frontend buffer can differ significantly. Return the correct buffer size when the mixing engine is used. Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Signed-off-by: Volker Rümelin <vr_qemu@t-online.de> Message-Id: <20250515054429.7385-3-vr_qemu@t-online.de>
Diffstat (limited to 'python/scripts')
0 files changed, 0 insertions, 0 deletions