replay_gain: reimplement as a filter plugin
Apply the replay gain in the output thread. This means a new setting will be active instantly, without going through the whole music pipe. And we might have different replay gain settings for each audio output device.
This commit is contained in:
@@ -22,6 +22,7 @@
|
||||
|
||||
#include "decoder_command.h"
|
||||
#include "pcm_convert.h"
|
||||
#include "replay_gain_info.h"
|
||||
|
||||
struct input_stream;
|
||||
|
||||
@@ -53,7 +54,13 @@ struct decoder {
|
||||
/** the chunk currently being written to */
|
||||
struct music_chunk *chunk;
|
||||
|
||||
struct replay_gain_state *replay_gain;
|
||||
struct replay_gain_info replay_gain_info;
|
||||
|
||||
/**
|
||||
* A positive serial number for checking if replay gain info
|
||||
* has changed since the last check.
|
||||
*/
|
||||
unsigned replay_gain_serial;
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user