Pulseaudio driver

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4827 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
malc
2008-07-02 21:03:08 +00:00
parent 923e45211c
commit b8e59f18de
5 changed files with 532 additions and 1 deletions
+5
View File
@@ -98,6 +98,11 @@ AUDIO_PT = yes
AUDIO_PT_INT = yes
AUDIO_OBJS += esdaudio.o
endif
ifdef CONFIG_PA
AUDIO_PT = yes
AUDIO_PT_INT = yes
AUDIO_OBJS += paaudio.o
endif
ifdef AUDIO_PT
LDFLAGS += -pthread
endif
+4
View File
@@ -270,6 +270,7 @@ libqemu.a: $(LIBOBJS)
$(AR) rcs $@ $(LIBOBJS)
translate.o: translate.c cpu.h $(OPC_H)
translate.o: CFLAGS:=${CFLAGS} -O1 #-fno-unit-at-a-time
translate-all.o: translate-all.c cpu.h $(OPC_H)
@@ -480,6 +481,9 @@ endif
ifdef CONFIG_ESD
LIBS += -lesd
endif
ifdef CONFIG_PA
LIBS += -lpulse-simple
endif
ifdef CONFIG_DSOUND
LIBS += -lole32 -ldxguid
endif
+1
View File
@@ -203,6 +203,7 @@ extern struct audio_driver alsa_audio_driver;
extern struct audio_driver coreaudio_audio_driver;
extern struct audio_driver dsound_audio_driver;
extern struct audio_driver esd_audio_driver;
extern struct audio_driver pa_audio_driver;
extern volume_t nominal_volume;
void audio_pcm_init_info (struct audio_pcm_info *info, audsettings_t *as);
+515
View File
File diff suppressed because it is too large Load Diff
Vendored
+7 -1
View File
@@ -196,7 +196,7 @@ SunOS)
;;
*)
audio_drv_list="oss"
audio_possible_drivers="oss alsa sdl esd"
audio_possible_drivers="oss alsa sdl esd pa"
linux="yes"
linux_user="yes"
if [ "$cpu" = "i386" -o "$cpu" = "x86_64" ] ; then
@@ -767,6 +767,12 @@ for drv in $audio_drv_list; do
esd)
audio_drv_probe $drv esd.h -lesd 'return esd_play_stream(0, 0, "", 0);'
;;
pa)
audio_drv_probe $drv pulse/simple.h -lpulse-simple \
"pa_simple *s = NULL; pa_simple_free(s); return 0;"
;;
esac
done