changeset 7659:b10df387019c

updated for libaf... please someone verify this, i'm not sure it's ok, looks weird: alsa_format.voices = ao_data.channels*2;
author arpi
date Mon, 07 Oct 2002 19:56:26 +0000
parents 65037d309de3
children 7ff053498bf2
files libao2/ao_alsa5.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libao2/ao_alsa5.c	Mon Oct 07 19:51:00 2002 +0000
+++ b/libao2/ao_alsa5.c	Mon Oct 07 19:56:26 2002 +0000
@@ -67,9 +67,9 @@
     }
 
     ao_data.format = format;
-    ao_data.channels = channels - 1;
+    ao_data.channels = channels;
     ao_data.samplerate = rate_hz;
-    ao_data.bps = ao_data.samplerate*(ao_data.channels+1);
+    ao_data.bps = ao_data.samplerate*ao_data.channels;
     ao_data.outburst = OUTBURST;
     ao_data.buffersize = 16384;
 
@@ -232,7 +232,7 @@
     }
 
     mp_msg(MSGT_AO, MSGL_INFO, "AUDIO: %d Hz/%d channels/%d bps/%d bytes buffer/%s\n",
-	ao_data.samplerate, ao_data.channels+1, ao_data.bps, ao_data.buffersize,
+	ao_data.samplerate, ao_data.channels, ao_data.bps, ao_data.buffersize,
 	snd_pcm_get_format_name(alsa_format.format));
     return(1);
 }