feat: allow setting volume directly

This commit is contained in:
Brenno Lemos
2023-10-15 11:08:30 -03:00
parent 64d7fae03a
commit c9e129cda2
2 changed files with 15 additions and 3 deletions

View File

@ -66,7 +66,8 @@ class AudioBackend {
AudioBackend(std::function<void()> on_updated_cb, private_constructor_tag tag);
~AudioBackend();
void changeVolume(ChangeType change_type, double step = 1, int max_volume = 100);
void changeVolume(uint16_t volume, uint16_t max_volume = 100);
void changeVolume(ChangeType change_type, double step = 1, uint16_t max_volume = 100);
void setIgnoredSinks(const Json::Value& config);