summaryrefslogtreecommitdiffstats
path: root/hw/usb/dev-audio.c
diff options
context:
space:
mode:
authorKővágó, Zoltán2019-08-19 01:06:46 +0200
committerGerd Hoffmann2019-08-21 09:13:37 +0200
commit526fb0581e1164ccf5e6d1a81b5da538594ae4d6 (patch)
tree9933245bf61b13f027e6d0766ab6040594a50670 /hw/usb/dev-audio.c
parentaudio: Add missing fall through comments (diff)
downloadqemu-526fb0581e1164ccf5e6d1a81b5da538594ae4d6.tar.gz
qemu-526fb0581e1164ccf5e6d1a81b5da538594ae4d6.tar.xz
qemu-526fb0581e1164ccf5e6d1a81b5da538594ae4d6.zip
audio: reduce glob_audio_state usage
Remove glob_audio_state from functions, where possible without breaking the API. This means that most static functions in audio.c now take an AudioState pointer instead of implicitly using glob_audio_state. Also included a pointer in SWVoice*, HWVoice* structs, so that functions dealing them can know the audio state without having to pass it around separately. This is required in order to support multiple simultaneous audio backends (added in a later commit). Signed-off-by: Kővágó, Zoltán <DirtY.iCE.hu@gmail.com> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-id: b5e241f24e795267b145bcde7c6a72dd5e6037ea.1566168923.git.DirtY.iCE.hu@gmail.com Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/usb/dev-audio.c')
0 files changed, 0 insertions, 0 deletions