mirror of
https://github.com/qemu/qemu.git
synced 2024-11-26 21:33:40 +08:00
71830221fb
Audio drivers now get an Audiodev * as config paramters, instead of the global audio_option structs. There is some code in audio/audio_legacy.c that converts the old environment variables to audiodev options (this way backends do not have to worry about legacy options). It also contains a replacement of -audio-help, which prints out the equivalent -audiodev based config of the currently specified environment variables. Note that backends are not updated and still rely on environment variables. Also note that (due to moving try-poll from global to backend specific option) currently ALSA and OSS will always try poll mode, regardless of environment variables or -audiodev options. Signed-off-by: Kővágó, Zoltán <DirtY.iCE.hu@gmail.com> Message-id: e99a7cbdac0d13512743880660b2032024703e4c.1552083282.git.DirtY.iCE.hu@gmail.com Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
32 lines
895 B
Makefile
32 lines
895 B
Makefile
common-obj-y = audio.o audio_legacy.o noaudio.o wavaudio.o mixeng.o
|
|
common-obj-$(CONFIG_SPICE) += spiceaudio.o
|
|
common-obj-$(CONFIG_AUDIO_COREAUDIO) += coreaudio.o
|
|
common-obj-$(CONFIG_AUDIO_DSOUND) += dsoundaudio.o
|
|
common-obj-$(CONFIG_AUDIO_PT_INT) += audio_pt_int.o
|
|
common-obj-$(CONFIG_AUDIO_WIN_INT) += audio_win_int.o
|
|
common-obj-y += wavcapture.o
|
|
|
|
coreaudio.o-libs := $(COREAUDIO_LIBS)
|
|
dsoundaudio.o-libs := $(DSOUND_LIBS)
|
|
|
|
# alsa module
|
|
common-obj-$(CONFIG_AUDIO_ALSA) += alsa.mo
|
|
alsa.mo-objs = alsaaudio.o
|
|
alsa.mo-libs := $(ALSA_LIBS)
|
|
|
|
# oss module
|
|
common-obj-$(CONFIG_AUDIO_OSS) += oss.mo
|
|
oss.mo-objs = ossaudio.o
|
|
oss.mo-libs := $(OSS_LIBS)
|
|
|
|
# pulseaudio module
|
|
common-obj-$(CONFIG_AUDIO_PA) += pa.mo
|
|
pa.mo-objs = paaudio.o
|
|
pa.mo-libs := $(PULSE_LIBS)
|
|
|
|
# sdl module
|
|
common-obj-$(CONFIG_AUDIO_SDL) += sdl.mo
|
|
sdl.mo-objs = sdlaudio.o
|
|
sdl.mo-cflags := $(SDL_CFLAGS)
|
|
sdl.mo-libs := $(SDL_LIBS)
|