output/MultipleOutputs: add method AddNullOutput()
This commit is contained in:
parent
77178e0590
commit
1e972174a6
@ -93,6 +93,20 @@ MultipleOutputs::Configure(EventLoop &event_loop,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
MultipleOutputs::AddNullOutput(EventLoop &event_loop,
|
||||||
|
const ReplayGainConfig &replay_gain_config,
|
||||||
|
AudioOutputClient &client)
|
||||||
|
{
|
||||||
|
ConfigBlock block;
|
||||||
|
block.AddBlockParam("type", "null");
|
||||||
|
|
||||||
|
auto output = LoadOutput(event_loop, replay_gain_config,
|
||||||
|
mixer_listener,
|
||||||
|
client, block);
|
||||||
|
outputs.push_back(output);
|
||||||
|
}
|
||||||
|
|
||||||
AudioOutput *
|
AudioOutput *
|
||||||
MultipleOutputs::FindByName(const char *name) const
|
MultipleOutputs::FindByName(const char *name) const
|
||||||
{
|
{
|
||||||
|
@ -80,6 +80,10 @@ public:
|
|||||||
const ReplayGainConfig &replay_gain_config,
|
const ReplayGainConfig &replay_gain_config,
|
||||||
AudioOutputClient &client);
|
AudioOutputClient &client);
|
||||||
|
|
||||||
|
void AddNullOutput(EventLoop &event_loop,
|
||||||
|
const ReplayGainConfig &replay_gain_config,
|
||||||
|
AudioOutputClient &client);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the total number of audio output devices, including
|
* Returns the total number of audio output devices, including
|
||||||
* those which are disabled right now.
|
* those which are disabled right now.
|
||||||
|
Loading…
Reference in New Issue
Block a user