]> Git Repo - qemu.git/commit
audio: reduce glob_audio_state usage
authorKővágó, Zoltán <[email protected]>
Sun, 18 Aug 2019 23:06:46 +0000 (01:06 +0200)
committerGerd Hoffmann <[email protected]>
Wed, 21 Aug 2019 07:13:37 +0000 (09:13 +0200)
commit526fb0581e1164ccf5e6d1a81b5da538594ae4d6
tree9933245bf61b13f027e6d0766ab6040594a50670
parente4634941457022b284664bacae9a3320481b1756
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 <[email protected]>
Reviewed-by: Marc-André Lureau <[email protected]>
Message-id: b5e241f24e795267b145bcde7c6a72dd5e6037ea.1566168923[email protected]
Signed-off-by: Gerd Hoffmann <[email protected]>
audio/audio.c
audio/audio_int.h
audio/audio_template.h
This page took 0.036308 seconds and 4 git commands to generate.