changeset 1209:18539f68dd37

ao_subdevice support
author arpi_esp
date Sat, 23 Jun 2001 19:40:04 +0000
parents 570b32414d1a
children 5cbbca64a5c9
files libao2/ao_sun.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libao2/ao_sun.c	Sat Jun 23 19:34:20 2001 +0000
+++ b/libao2/ao_sun.c	Sat Jun 23 19:40:04 2001 +0000
@@ -215,6 +215,8 @@
   audio_info_t info;
   int byte_per_sec;
 
+  if (ao_subdevice) audio_dev = ao_subdevice;
+
   if (enable_sample_timing == RTSC_UNKNOWN
       && !getenv("AO_SUN_DISABLE_SAMPLE_TIMING")) {
       enable_sample_timing = realtime_samplecounter_available(audio_dev);