File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ class SnapOutput : public AudioInfoSupport {
7676 // / mute / unmute
7777 void setMute (bool mute) {
7878 is_mute = mute;
79- vol_stream.setVolume (mute ? 0 : vol);
79+ vol_stream.setVolume (mute ? 0 : vol * vol_factor );
8080 audioWriteSilence ();
8181 }
8282
@@ -153,6 +153,7 @@ class SnapOutput : public AudioInfoSupport {
153153 vol_cfg.copyFrom (audio_info);
154154 vol_cfg.allow_boost = true ;
155155 vol_stream.begin (vol_cfg);
156+ vol_stream.setVolume (vol * vol_factor);
156157
157158 // open final output
158159 out->setAudioInfo (audio_info);
@@ -264,4 +265,4 @@ class SnapOutput : public AudioInfoSupport {
264265 int delay_ms = diff_ms + p_snap_time_sync->getStartDelay ();
265266 return delay_ms;
266267 }
267- };
268+ };
You can’t perform that action at this time.
0 commit comments