output/MultipleOutputs: SetVolume() throws on error

This reveals more about the nature of an error instead of just
returning "problems setting volume".
This commit is contained in:
Max Kellermann
2022-07-08 10:46:15 +02:00
parent 9bdc75524b
commit 2d7181105d
6 changed files with 62 additions and 31 deletions

View File

@@ -141,10 +141,11 @@ public:
/**
* Sets the volume on all available mixers.
*
* Throws on error.
*
* @param volume the volume (range 0..100)
* @return true on success, false on failure
*/
bool SetVolume(unsigned volume) noexcept;
void SetVolume(unsigned volume);
/**
* Similar to GetVolume(), but gets the volume only for