filter/ReplayGain: add ReplayGainConfig copy

Remove dependency on ReplayGain global variables.
This commit is contained in:
Max Kellermann
2016-11-25 13:54:55 +01:00
parent 3b867462a3
commit 3000b9dcde
10 changed files with 52 additions and 47 deletions

View File

@@ -40,6 +40,7 @@ struct MusicChunk;
struct ConfigBlock;
struct PlayerControl;
struct AudioOutputPlugin;
struct ReplayGainConfig;
struct AudioOutput {
enum class Command {
@@ -464,7 +465,9 @@ extern struct notify audio_output_client_notify;
* Throws #std::runtime_error on error.
*/
AudioOutput *
audio_output_new(EventLoop &event_loop, const ConfigBlock &block,
audio_output_new(EventLoop &event_loop,
const ReplayGainConfig &replay_gain_config,
const ConfigBlock &block,
MixerListener &mixer_listener,
PlayerControl &pc);