Devices' 0 dB is base_volume not PA_VOLUME_NORM.
s->saved_volume = *pa_sink_get_volume(s, TRUE);
s->saved_save_volume = s->save_volume;
- pa_cvolume_set(&volume, s->sample_spec.channels, PA_VOLUME_NORM);
+ pa_cvolume_set(&volume, s->sample_spec.channels, s->base_volume);
pa_sink_set_volume(s, &volume, TRUE, FALSE);
}
s->saved_volume = *pa_source_get_volume(s, TRUE);
s->saved_save_volume = s->save_volume;
- pa_cvolume_set(&volume, s->sample_spec.channels, PA_VOLUME_NORM);
+ pa_cvolume_set(&volume, s->sample_spec.channels, s->base_volume);
pa_source_set_volume(s, &volume, TRUE, FALSE);
}