changeset 59:72ad216a01ac trunk

[svn] - tell audacious that playback is starting when we open an alac file - hookup alac to the build
author nenolod
date Sat, 30 Sep 2006 21:19:52 -0700
parents d42917f142b5
children 34f76b8969bd
files ChangeLog configure.ac src/alac/plugin.c
diffstat 3 files changed, 11 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Sat Sep 30 21:11:48 2006 -0700
+++ b/ChangeLog	Sat Sep 30 21:19:52 2006 -0700
@@ -1,3 +1,11 @@
+2006-10-01 04:11:48 +0000  William Pitcock <nenolod@nenolod.net>
+  revision [116]
+  - remove debugging notices
+  
+  trunk/src/alac/plugin.c |    8 --------
+  1 file changed, 8 deletions(-)
+
+
 2006-10-01 03:58:51 +0000  William Pitcock <nenolod@nenolod.net>
   revision [114]
   - fix crashing. works on my x64 box, static on bigendian (tested: x64-be, mips, ppc64)
--- a/configure.ac	Sat Sep 30 21:11:48 2006 -0700
+++ b/configure.ac	Sat Sep 30 21:19:52 2006 -0700
@@ -85,7 +85,7 @@
 
 dnl These plugins are always built.
 
-INPUT_PLUGINS="tonegen console sexypsf wav cue"
+INPUT_PLUGINS="tonegen console sexypsf wav cue alac"
 OUTPUT_PLUGINS="disk_writer"
 EFFECT_PLUGINS="audiocompress ladspa voice_removal"
 GENERAL_PLUGINS="song_change"
@@ -1084,6 +1084,7 @@
 echo "  Game music (spc, nsf & gbs):            yes"
 echo "  PlayStation audio (sexypsf):            yes"
 echo "  AdLib synthesizer (adplug):             $have_adplug"
+echo "  Apple Lossless Audio Codec (alac):      yes"
 echo
 echo "  General"
 echo "  -------"
--- a/src/alac/plugin.c	Sat Sep 30 21:11:48 2006 -0700
+++ b/src/alac/plugin.c	Sat Sep 30 21:19:52 2006 -0700
@@ -234,8 +234,6 @@
     input_file = vfs_fopen((char *) args, "rb");
     input_stream = stream_create_file(input_file, 1);
 
-    printf("filename: %s\n", (char *) args);
-
     if (!input_stream)
     {
         fprintf(stderr, "failed to create input stream from file\n");
@@ -254,6 +252,7 @@
     init_sound_converter(&demux_res);
 
     alac_ip.output->open_audio(FMT_S16_LE, demux_res.sample_rate, demux_res.num_channels);
+    alac_ip.set_info((char *) args, -1, -1, demux_res.sample_rate, demux_res.num_channels);
 
     /* will convert the entire buffer */
     GetBuffer(&demux_res);