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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user