Commit b8e59f18 authored by malc's avatar malc

Pulseaudio driver

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4827 c046a42c-6fe2-441c-8c8c-71466251a162
parent 923e4521
......@@ -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
......
......@@ -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
......
......@@ -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);
......
This diff is collapsed.
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment