decoder/Control: make ReplayGainConfig const
This commit is contained in:
@@ -27,8 +27,10 @@
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
DecoderControl::DecoderControl(Mutex &_mutex, Cond &_client_cond)
|
||||
:mutex(_mutex), client_cond(_client_cond) {}
|
||||
DecoderControl::DecoderControl(Mutex &_mutex, Cond &_client_cond,
|
||||
const ReplayGainConfig &_replay_gain_config)
|
||||
:mutex(_mutex), client_cond(_client_cond),
|
||||
replay_gain_config(_replay_gain_config) {}
|
||||
|
||||
DecoderControl::~DecoderControl()
|
||||
{
|
||||
|
@@ -158,7 +158,7 @@ struct DecoderControl {
|
||||
*/
|
||||
MusicPipe *pipe;
|
||||
|
||||
ReplayGainConfig replay_gain_config;
|
||||
const ReplayGainConfig replay_gain_config;
|
||||
ReplayGainMode replay_gain_mode = ReplayGainMode::OFF;
|
||||
|
||||
float replay_gain_db = 0;
|
||||
@@ -170,7 +170,8 @@ struct DecoderControl {
|
||||
* @param _mutex see #mutex
|
||||
* @param _client_cond see #client_cond
|
||||
*/
|
||||
DecoderControl(Mutex &_mutex, Cond &_client_cond);
|
||||
DecoderControl(Mutex &_mutex, Cond &_client_cond,
|
||||
const ReplayGainConfig &_replay_gain_config);
|
||||
~DecoderControl();
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user