spice: add audiomaster
commit3e31375378f40558f1ee7c258f3cc63c85596bfc
authorGerd Hoffmann <kraxel@redhat.com>
Tue, 9 Nov 2010 16:29:46 +0000 (9 17:29 +0100)
committermalc <av1474@comtv.ru>
Tue, 9 Nov 2010 20:39:30 +0000 (9 23:39 +0300)
tree0e222f010473c3ddd15f107c798493d020cbf02a
parentdf0db2212d86e98c41774600c44cc960ddc2b68c
spice: add audio

Add support for the spice audio interface.  With this patch applied
audio can be forwarded over the network from/to the spice client.  Both
recording and playback is supported.

The driver is first in the driver list, but the can_be_default flag is
set only in case spice is active.  So if you have the spice protocol
enabled the spice audio driver is the default one, otherwise whatever
comes first after spice in the list.  Overriding the default using
QEMU_AUDIO_DRV works in any case.

[ v2: audio codestyle: add spaces before open parenthesis ]
[ v2: add const to silence array ]

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Cc: malc <av1474@comtv.ru>
Signed-off-by: malc <av1474@comtv.ru>
Makefile.objs
audio/audio.c
audio/audio_int.h
audio/spiceaudio.c [new file with mode: 0644]
ui/qemu-spice.h
ui/spice-core.c