output/control: add command RELEASE

With the new command, the decision to pause or close the output moves
into the output thread.
This commit is contained in:
Max Kellermann
2018-11-12 11:30:05 +01:00
parent 9a813cd3b1
commit e097fef79e
3 changed files with 45 additions and 3 deletions
+6
View File
@@ -131,6 +131,12 @@ class AudioOutputControl {
CLOSE,
PAUSE,
/**
* Close or pause the device, depending on the
* #always_on setting.
*/
RELEASE,
/**
* Drains the internal (hardware) buffers of the device. This
* operation may take a while to complete.