output/MultipleOutputs: use struct ConfigData
This commit is contained in:
parent
4f678aa244
commit
0c8ffa1ac3
@ -572,6 +572,7 @@ try {
|
||||
|
||||
for (auto &partition : instance->partitions) {
|
||||
partition.outputs.Configure(instance->rtio_thread.GetEventLoop(),
|
||||
raw_config,
|
||||
config.replay_gain,
|
||||
partition.pc);
|
||||
partition.UpdateEffectiveReplayGainMode();
|
||||
|
@ -24,7 +24,7 @@
|
||||
#include "MusicPipe.hxx"
|
||||
#include "MusicChunk.hxx"
|
||||
#include "config/Block.hxx"
|
||||
#include "config/Global.hxx"
|
||||
#include "config/Data.hxx"
|
||||
#include "config/Option.hxx"
|
||||
#include "util/RuntimeError.hxx"
|
||||
|
||||
@ -87,10 +87,11 @@ LoadOutputControl(EventLoop &event_loop,
|
||||
|
||||
void
|
||||
MultipleOutputs::Configure(EventLoop &event_loop,
|
||||
const ConfigData &config,
|
||||
const ReplayGainConfig &replay_gain_config,
|
||||
AudioOutputClient &client)
|
||||
{
|
||||
for (const auto *param = config_get_block(ConfigBlockOption::AUDIO_OUTPUT);
|
||||
for (const auto *param = config.GetBlock(ConfigBlockOption::AUDIO_OUTPUT);
|
||||
param != nullptr; param = param->next) {
|
||||
param->SetUsed();
|
||||
auto *output = LoadOutputControl(event_loop,
|
||||
|
@ -42,6 +42,7 @@ class MusicPipe;
|
||||
class EventLoop;
|
||||
class MixerListener;
|
||||
class AudioOutputClient;
|
||||
struct ConfigData;
|
||||
struct ReplayGainConfig;
|
||||
|
||||
class MultipleOutputs final : public PlayerOutputs {
|
||||
@ -72,6 +73,7 @@ public:
|
||||
~MultipleOutputs() noexcept;
|
||||
|
||||
void Configure(EventLoop &event_loop,
|
||||
const ConfigData &config,
|
||||
const ReplayGainConfig &replay_gain_config,
|
||||
AudioOutputClient &client);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user