volume: Don't bother setting the steps.
The number of volume steps doesn't really affect our scale, so there is little value in setting it.
This commit is contained in:
parent
297af52ae5
commit
c70b048c98
|
@ -112,7 +112,3 @@ void ChannelWidget::setBaseVolume(pa_volume_t v) {
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
void ChannelWidget::setSteps(unsigned n) {
|
||||
/*volumeScale->set_increments(100.0/(n-1), 100.0/(n-1));*/
|
||||
}
|
||||
|
|
|
@ -47,7 +47,6 @@ public:
|
|||
|
||||
virtual void set_sensitive(bool enabled);
|
||||
virtual void setBaseVolume(pa_volume_t);
|
||||
virtual void setSteps(unsigned n);
|
||||
};
|
||||
|
||||
|
||||
|
|
|
@ -139,12 +139,6 @@ void DeviceWidget::setBaseVolume(pa_volume_t v) {
|
|||
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);
|
||||
}
|
||||
|
||||
void DeviceWidget::prepareMenu() {
|
||||
int idx = 0;
|
||||
int active_idx = -1;
|
||||
|
|
|
@ -58,7 +58,6 @@ public:
|
|||
|
||||
virtual void executeVolumeUpdate();
|
||||
virtual void setBaseVolume(pa_volume_t v);
|
||||
virtual void setSteps(unsigned n);
|
||||
|
||||
std::vector< std::pair<Glib::ustring,Glib::ustring> > ports;
|
||||
Glib::ustring activePort;
|
||||
|
|
|
@ -278,7 +278,6 @@ void MainWindow::updateSink(const pa_sink_info &info) {
|
|||
is_new = true;
|
||||
|
||||
w->setBaseVolume(info.base_volume);
|
||||
w->setSteps(info.n_volume_steps);
|
||||
}
|
||||
|
||||
w->updating = true;
|
||||
|
@ -415,7 +414,6 @@ void MainWindow::updateSource(const pa_source_info &info) {
|
|||
is_new = true;
|
||||
|
||||
w->setBaseVolume(info.base_volume);
|
||||
w->setSteps(info.n_volume_steps);
|
||||
|
||||
if (pa_context_get_server_protocol_version(get_context()) >= 13)
|
||||
createMonitorStreamForSource(info.index);
|
||||
|
|
Loading…
Reference in New Issue