changeset 346:430658951e30 trunk

[svn] Use produce_audio() to pass the audio through the new audacious filterchain stuff. (EQ support!!!)
author nenolod
date Mon, 26 Dec 2005 13:09:53 -0800
parents 9b19994a715c
children 2dd23cdf6c4b
files Plugins/Input/aac/src/libmp4.c
diffstat 1 files changed, 8 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/Plugins/Input/aac/src/libmp4.c	Mon Dec 26 13:01:04 2005 -0800
+++ b/Plugins/Input/aac/src/libmp4.c	Mon Dec 26 13:09:53 2005 -0800
@@ -19,6 +19,7 @@
 #include "mp4.h"
 
 #include <audacious/plugin.h>
+#include <audacious/output.h>
 #include <libaudacious/util.h>
 #include <libaudacious/titlestring.h>
 
@@ -35,11 +36,12 @@
 static void	mp4_seek(int);
 static int	mp4_getTime(void);
 static void	mp4_cleanup(void);
-static void     audmp4_file_info_box(gchar *);
 static int	mp4_isFile(char *);
 static void	mp4_getSongTitle(char *filename, char **, int *);
 static void*	mp4Decode(void *);
 
+void     audmp4_file_info_box(gchar *);
+
 InputPlugin mp4_ip =
   {
     0,	// handle
@@ -347,12 +349,11 @@
 	  while(bPlaying && mp4_ip.output->buffer_free()<frameInfo.samples<<1)
 	    xmms_usleep(30000);
 	}
-	mp4_ip.add_vis_pcm(mp4_ip.output->written_time(),
-			   FMT_S16_NE,
-			   channels,
-			   frameInfo.samples<<1,
-			   sampleBuffer);
-	mp4_ip.output->write_audio(sampleBuffer, frameInfo.samples<<1);
+	produce_audio(mp4_ip.output->written_time(),
+		   FMT_S16_NE,
+		   channels,
+		   frameInfo.samples<<1,
+		   sampleBuffer, &bPlaying);
       }
       while(bPlaying && mp4_ip.output->buffer_free()){
 	xmms_usleep(10000);