diff src/alac/plugin.c @ 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 f04b33512c3d
line wrap: on
line diff
--- 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);