changeset 1988:7cadca1a29ec

wav: set_params()
author William Pitcock <nenolod@atheme.org>
date Sun, 07 Oct 2007 14:42:56 -0500
parents b7bb2753677c
children 1bd99632fc4d
files src/wav/wav-sndfile.c src/wav/wav.c
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/wav/wav-sndfile.c	Sun Oct 07 14:40:32 2007 -0500
+++ b/src/wav/wav-sndfile.c	Sun Oct 07 14:42:56 2007 -0500
@@ -449,7 +449,7 @@
 		return;
 	}
 
-	wav_ip.set_info (song_title, song_length, bit_rate, sfinfo.samplerate, sfinfo.channels);
+	playback->set_params(playback, song_title, song_length, bit_rate, sfinfo.samplerate, sfinfo.channels);
 	g_free (song_title);
 
 	playback->playing = TRUE;
--- a/src/wav/wav.c	Sun Oct 07 14:40:32 2007 -0500
+++ b/src/wav/wav.c	Sun Oct 07 14:42:56 2007 -0500
@@ -388,7 +388,7 @@
         rate =
             wav_file->samples_per_sec * wav_file->channels *
             (wav_file->bits_per_sample / 8);
-        wav_ip.set_info(name, 1000 * (wav_file->length / rate), 8 * rate,
+        playback->set_params(playback, name, 1000 * (wav_file->length / rate), 8 * rate,
                         wav_file->samples_per_sec, wav_file->channels);
         g_free(name);
         wav_file->seek_to = -1;