changeset 1207:bf18175dfad7

ao_subdevice support added
author al3x
date Sat, 23 Jun 2001 18:59:54 +0000
parents e9138e79ca69
children 570b32414d1a
files libao2/ao_alsa1x.c libao2/ao_alsa9.c
diffstat 2 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libao2/ao_alsa1x.c	Sat Jun 23 18:06:10 2001 +0000
+++ b/libao2/ao_alsa1x.c	Sat Jun 23 18:59:54 2001 +0000
@@ -155,6 +155,9 @@
 	return(0);
     }
 
+    if (ao_subdevice != NULL)
+	alsa_device = ao_subdevice;
+
     if (alsa_device == NULL)
     {
 	if ((alsa_device = malloc(ALSA_DEVICE_SIZE)) == NULL)
--- a/libao2/ao_alsa9.c	Sat Jun 23 18:06:10 2001 +0000
+++ b/libao2/ao_alsa9.c	Sat Jun 23 18:59:54 2001 +0000
@@ -155,6 +155,9 @@
 	return(0);
     }
 
+    if (ao_subdevice != NULL)
+	alsa_device = ao_subdevice;
+
     if (alsa_device == NULL)
     {
 	if ((alsa_device = malloc(ALSA_DEVICE_SIZE)) == NULL)