summaryrefslogtreecommitdiff
path: root/src/xine-engine/audio_out.c
diff options
context:
space:
mode:
authorJames Courtier-Dutton <jcdutton@users.sourceforge.net>2002-10-18 14:20:58 +0000
committerJames Courtier-Dutton <jcdutton@users.sourceforge.net>2002-10-18 14:20:58 +0000
commitb3f5dea2ce5abd240a33a65ac77dd675c6886c05 (patch)
tree3dd1047462296e5b00c54115de38104237d75b89 /src/xine-engine/audio_out.c
parent544297ca6a13e6797a4ee895fc63efceb5602d30 (diff)
downloadxine-lib-b3f5dea2ce5abd240a33a65ac77dd675c6886c05.tar.gz
xine-lib-b3f5dea2ce5abd240a33a65ac77dd675c6886c05.tar.bz2
A52 audio is now output without volume set to 0 or off. :-)
Config entries not enabled yet. Possible multiple stream issues. CVS patchset: 2849 CVS date: 2002/10/18 14:20:58
Diffstat (limited to 'src/xine-engine/audio_out.c')
-rw-r--r--src/xine-engine/audio_out.c27
1 files changed, 23 insertions, 4 deletions
diff --git a/src/xine-engine/audio_out.c b/src/xine-engine/audio_out.c
index d9f65579d..59be4e4a2 100644
--- a/src/xine-engine/audio_out.c
+++ b/src/xine-engine/audio_out.c
@@ -17,7 +17,7 @@
* along with self program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: audio_out.c,v 1.71 2002/10/18 13:13:30 jcdutton Exp $
+ * $Id: audio_out.c,v 1.72 2002/10/18 14:20:59 jcdutton Exp $
*
* 22-8-2001 James imported some useful AC3 sections from the previous alsa driver.
* (c) 2001 Andy Lo A Foe <andy@alsaplayer.org>
@@ -67,9 +67,9 @@
#include "resample.h"
#include "metronom.h"
-
+/*
#define LOG
-
+*/
#define NUM_AUDIO_BUFFERS 32
#define AUDIO_BUF_SIZE 32768
@@ -548,8 +548,27 @@ static void *ao_loop (void *this_gen) {
ao_fill_gap (this, gap / 2);
}
} else {
+#if 0
+ {
+ int count;
+ printf("Audio data\n");
+ for (count=0;count < 10;count++) {
+ printf("%x ",buf->mem[count]);
+ }
+ printf("\n");
+ }
+#endif
out_buf = prepare_samples(this, buf);
-
+#if 0
+ {
+ int count;
+ printf("Audio data2\n");
+ for (count=0;count < 10;count++) {
+ printf("%x ",out_buf->mem[count]);
+ }
+ printf("\n");
+ }
+#endif
this->driver->write (this->driver, out_buf->mem, out_buf->num_frames );
#ifdef LOG
printf ("audio_out:loop: next fifo\n");