mixer/Memento: move IDLE_MIXER out of SetVolume()
Make this idle event per-partition.
This commit is contained in:
@@ -68,8 +68,6 @@ MixerMemento::SetVolume(MultipleOutputs &outputs, unsigned volume)
|
||||
|
||||
volume_software_set = volume;
|
||||
|
||||
idle_add(IDLE_MIXER);
|
||||
|
||||
SetHardwareVolume(outputs, volume);
|
||||
}
|
||||
|
||||
|
@@ -49,6 +49,8 @@ public:
|
||||
|
||||
/**
|
||||
* Throws on error.
|
||||
*
|
||||
* Note: the caller is responsible for emitting #IDLE_MIXER.
|
||||
*/
|
||||
void SetVolume(MultipleOutputs &outputs, unsigned volume);
|
||||
|
||||
|
Reference in New Issue
Block a user