aboutsummaryrefslogtreecommitdiff
path: root/audio/audio_int.h
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@gmail.com>2012-04-17 14:32:35 +0200
committermalc <av1474@comtv.ru>2012-04-17 16:57:57 +0400
commit6c95ab94f9f7e8d3156e4e16ecc7c499e141bb1a (patch)
tree04b8296de6173bcb0ef7a347badc38da0c7935a9 /audio/audio_int.h
parent158fd3ce98afd21f2e2639600f6414ea703a9121 (diff)
downloadqemu-6c95ab94f9f7e8d3156e4e16ecc7c499e141bb1a.zip
qemu-6c95ab94f9f7e8d3156e4e16ecc7c499e141bb1a.tar.gz
qemu-6c95ab94f9f7e8d3156e4e16ecc7c499e141bb1a.tar.bz2
audio: add VOICE_VOLUME ctl
Add a new PCM control operation to update the stream volume on the audio backend. The argument given is a SWVoiceOut/SWVoiceIn. v4: - verified other backends didn't fail/assert on this new control they randomly return 0 or -1, but we ignore return value. Signed-off-by: Marc-Andr? Lureau <marcandre.lureau@redhat.com> Signed-off-by: malc <av1474@comtv.ru>
Diffstat (limited to 'audio/audio_int.h')
-rw-r--r--audio/audio_int.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/audio/audio_int.h b/audio/audio_int.h
index 2003f8b..117f95e 100644
--- a/audio/audio_int.h
+++ b/audio/audio_int.h
@@ -231,6 +231,7 @@ void audio_run (const char *msg);
#define VOICE_ENABLE 1
#define VOICE_DISABLE 2
+#define VOICE_VOLUME 3
static inline int audio_ring_dist (int dst, int src, int len)
{