output/Control: pass "force" flag to LockUpdate()

Reduce overhead by eliminating MultipleOutputs::ResetReopen().
This commit is contained in:
Max Kellermann
2016-12-29 23:20:26 +01:00
parent 982d1bf662
commit db95aa250d
4 changed files with 12 additions and 32 deletions

View File

@@ -383,10 +383,12 @@ public:
* Opens or closes the device, depending on the "enabled"
* flag.
*
* @param force true to ignore the #fail_timer
* @return true if the device is open
*/
bool LockUpdate(const AudioFormat audio_format,
const MusicPipe &mp);
const MusicPipe &mp,
bool force);
void LockPlay();