1
0
mirror of https://github.com/TomHarte/CLK.git synced 2026-04-21 02:17:08 +00:00

Allows audio volume to be set.

This commit is contained in:
Thomas Harte
2020-03-21 22:00:47 -04:00
parent 0c689e85a5
commit 9087bb9b08
4 changed files with 19 additions and 0 deletions
@@ -54,6 +54,12 @@ bool MultiSpeaker::get_is_stereo() {
return false;
}
void MultiSpeaker::set_output_volume(float volume) {
for(const auto &speaker: speakers_) {
speaker->set_output_volume(volume);
}
}
void MultiSpeaker::set_delegate(Outputs::Speaker::Speaker::Delegate *delegate) {
delegate_ = delegate;
}