From 8b1f6ff3c8ed06ef469d29b4a691dc4776a3db82 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 2 Nov 2008 16:55:43 +0100 Subject: decoder: replaced music_pipe.audioFormat with dc.out_audio_format .. and rename dc.audioFormat to dc.in_audio_format. The music pipe does not need to know the audio format, and its former "audioFormat" property indicated the format of the most recently added chunk, which might be confusing when you are reading the oldest chunks. --- src/decoder_control.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/decoder_control.h') diff --git a/src/decoder_control.h b/src/decoder_control.h index bfee8a259..5f7bbf546 100644 --- a/src/decoder_control.h +++ b/src/decoder_control.h @@ -47,7 +47,13 @@ struct decoder_control { bool seekError; bool seekable; volatile double seekWhere; - struct audio_format audioFormat; + + /** the format of the song file */ + struct audio_format in_audio_format; + + /** the format being sent to the music pipe */ + struct audio_format out_audio_format; + struct song *current_song; struct song *volatile next_song; volatile float totalTime; -- cgit v1.2.3