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.
This commit is contained in:
Max Kellermann
2008-11-02 16:55:43 +01:00
parent 30fca5e5a9
commit 8b1f6ff3c8
6 changed files with 34 additions and 22 deletions

View File

@@ -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;