command/partition: add command "delpartition"

This commit is contained in:
Max Kellermann
2020-01-20 09:10:02 +01:00
parent 9cbfa66886
commit cc7f66822e
8 changed files with 79 additions and 0 deletions
+12
View File
@@ -102,6 +102,18 @@ public:
return *outputs[i];
}
/**
* Are all outputs dummy?
*/
gcc_pure
bool IsDummy() const noexcept {
for (const auto &i : outputs)
if (!i->IsDummy())
return false;
return true;
}
/**
* Returns the audio output device with the specified name.
* Returns nullptr if the name does not exist.