output/{Source,Thread}: make the AudioFormat parameter const

This commit is contained in:
Max Kellermann 2017-06-08 13:19:34 +02:00
parent 3010d182fc
commit 7dea615f74
2 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@
#include <string.h> #include <string.h>
AudioFormat AudioFormat
AudioOutputSource::Open(AudioFormat audio_format, const MusicPipe &_pipe, AudioOutputSource::Open(const AudioFormat audio_format, const MusicPipe &_pipe,
PreparedFilter *prepared_replay_gain_filter, PreparedFilter *prepared_replay_gain_filter,
PreparedFilter *prepared_other_replay_gain_filter, PreparedFilter *prepared_other_replay_gain_filter,
PreparedFilter *prepared_filter) PreparedFilter *prepared_filter)

View File

@ -86,7 +86,7 @@ AudioOutput::CloseFilter() noexcept
} }
inline void inline void
AudioOutput::Open(AudioFormat audio_format, const MusicPipe &pipe) AudioOutput::Open(const AudioFormat audio_format, const MusicPipe &pipe)
{ {
assert(audio_format.IsValid()); assert(audio_format.IsValid());