From d39f5c596228b113c328e6e8304b07d1c7a77459 Mon Sep 17 00:00:00 2001 From: al3x Date: Sat, 23 Jun 2001 18:59:54 +0000 Subject: [PATCH] ao_subdevice support added git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1208 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libao2/ao_alsa1x.c | 3 +++ libao2/ao_alsa9.c | 3 +++ 2 files changed, 6 insertions(+) diff --git a/libao2/ao_alsa1x.c b/libao2/ao_alsa1x.c index 6764068ae7..41eae11038 100644 --- a/libao2/ao_alsa1x.c +++ b/libao2/ao_alsa1x.c @@ -155,6 +155,9 @@ static int init(int rate_hz, int channels, int format, int flags) return(0); } + if (ao_subdevice != NULL) + alsa_device = ao_subdevice; + if (alsa_device == NULL) { if ((alsa_device = malloc(ALSA_DEVICE_SIZE)) == NULL) diff --git a/libao2/ao_alsa9.c b/libao2/ao_alsa9.c index 6764068ae7..41eae11038 100644 --- a/libao2/ao_alsa9.c +++ b/libao2/ao_alsa9.c @@ -155,6 +155,9 @@ static int init(int rate_hz, int channels, int format, int flags) return(0); } + if (ao_subdevice != NULL) + alsa_device = ao_subdevice; + if (alsa_device == NULL) { if ((alsa_device = malloc(ALSA_DEVICE_SIZE)) == NULL)