summaryrefslogtreecommitdiffstats
path: root/src/devicewidget.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/devicewidget.cc')
-rw-r--r--src/devicewidget.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/devicewidget.cc b/src/devicewidget.cc
index 270a080..b7b3d74 100644
--- a/src/devicewidget.cc
+++ b/src/devicewidget.cc
@@ -107,3 +107,15 @@ bool DeviceWidget::timeoutEvent() {
void DeviceWidget::executeVolumeUpdate() {
}
+
+void DeviceWidget::setBaseVolume(pa_volume_t v) {
+
+ if (channelMap.channels > 0)
+ channelWidgets[channelMap.channels-1]->setBaseVolume(v);
+}
+
+void DeviceWidget::setSteps(unsigned n) {
+
+ for (int i = 0; i < channelMap.channels; i++)
+ channelWidgets[channelMap.channels-1]->setSteps(n);
+}