coreaudio: fix coreaudio playback
commit180b044ffde2cdd4a7209c727b5a8ce93d36741f
authorVolker Rümelin <vr_qemu@t-online.de>
Sun, 2 Feb 2020 14:06:41 +0000 (2 15:06 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Thu, 6 Feb 2020 13:35:04 +0000 (6 14:35 +0100)
tree0bb3178baab2fbd361cfc9849d348224a52176a7
parentfb35c2cec58985f0b8d2733f1b91927542eeb3fd
coreaudio: fix coreaudio playback

There are reports that since commit 2ceb8240fa "coreaudio: port
to the new audio backend api" audio playback with CoreAudio is
broken. This patch reverts some parts the commit.

Because of changes in the audio subsystem the audio clip
function in v4.1.0 of coreaudio.c had to be moved to mixeng.c
and the generic buffer management code needed a hint about the
size of the float type.

This patch is based on a patch from Zoltán Kővágó found at
https://lists.nongnu.org/archive/html/qemu-devel/2020-01/msg02142.html.

Fixes: 2ceb8240fa "coreaudio: port to the new audio backend api"

Signed-off-by: Volker Rümelin <vr_qemu@t-online.de>
Message-id: 20200202140641.4737-1-vr_qemu@t-online.de
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
audio/audio_template.h
audio/coreaudio.c
audio/mixeng.c
audio/mixeng.h