summaryrefslogtreecommitdiffstats
path: root/libao2
diff options
context:
space:
mode:
authorarpi_esp <arpi_esp@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-06-23 19:40:04 +0000
committerarpi_esp <arpi_esp@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-06-23 19:40:04 +0000
commite7a1ac130a7e54b752d2a38e59607ffeda7774cf (patch)
treebdacaeb04dd150a748b6ad9d5fa43f647893ac98 /libao2
parent077bf085f5cfdc011f2f80ab10cd57179c4af9a9 (diff)
downloadmpv-e7a1ac130a7e54b752d2a38e59607ffeda7774cf.tar.bz2
mpv-e7a1ac130a7e54b752d2a38e59607ffeda7774cf.tar.xz
ao_subdevice support
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1210 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libao2')
-rw-r--r--libao2/ao_sun.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libao2/ao_sun.c b/libao2/ao_sun.c
index 346b5ad7f3..88fc2262f9 100644
--- a/libao2/ao_sun.c
+++ b/libao2/ao_sun.c
@@ -215,6 +215,8 @@ static int init(int rate,int channels,int format,int flags){
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);