output/MultipleOutputs: add method IsOpen()
This commit is contained in:
parent
f616bfe354
commit
2f3e94f8d0
|
@ -172,7 +172,7 @@ MultipleOutputs::Update(bool force) noexcept
|
||||||
{
|
{
|
||||||
bool ret = false;
|
bool ret = false;
|
||||||
|
|
||||||
if (!input_audio_format.IsDefined())
|
if (!IsOpen())
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
for (const auto &ao : outputs)
|
for (const auto &ao : outputs)
|
||||||
|
|
|
@ -155,6 +155,15 @@ public:
|
||||||
void SetSoftwareVolume(unsigned volume) noexcept;
|
void SetSoftwareVolume(unsigned volume) noexcept;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
/**
|
||||||
|
* Was Open() called successfully?
|
||||||
|
*
|
||||||
|
* This method may only be called from the player thread.
|
||||||
|
*/
|
||||||
|
bool IsOpen() const noexcept {
|
||||||
|
return input_audio_format.IsDefined();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Wait until all (active) outputs have finished the current
|
* Wait until all (active) outputs have finished the current
|
||||||
* command.
|
* command.
|
||||||
|
|
Loading…
Reference in New Issue