aboutsummaryrefslogtreecommitdiff
path: root/audio/audio.h
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2022-04-27 12:27:46 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2022-05-14 12:33:44 +0200
commit039a68373c4544ff94871f945a733928b6dcfe93 (patch)
tree9a4d966054f19e7c967a5d9c046d9ab184ab0fc3 /audio/audio.h
parent67aaa96ae451913ffd25766dc59341fe6b63619d (diff)
downloadqemu-039a68373c4544ff94871f945a733928b6dcfe93.zip
qemu-039a68373c4544ff94871f945a733928b6dcfe93.tar.gz
qemu-039a68373c4544ff94871f945a733928b6dcfe93.tar.bz2
introduce -audio as a replacement for -soundhw
-audio is used like "-audio pa,model=sb16". It is almost as simple as -soundhw, but it reuses the -audiodev parsing machinery and attaches an audiodev to the newly-created device. The main 'feature' is that it knows about adding the codec device for model=intel-hda, and adding the audiodev to the codec device. In the future, it could be extended to support default models or builtin devices, just like -nic, or even a default backend. For now, keep it simple. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'audio/audio.h')
-rw-r--r--audio/audio.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/audio/audio.h b/audio/audio.h
index 3d5ecde..b5e17cd 100644
--- a/audio/audio.h
+++ b/audio/audio.h
@@ -168,6 +168,7 @@ void audio_sample_to_uint64(const void *samples, int pos,
void audio_sample_from_uint64(void *samples, int pos,
uint64_t left, uint64_t right);
+void audio_define(Audiodev *audio);
void audio_parse_option(const char *opt);
void audio_init_audiodevs(void);
void audio_legacy_help(void);