Skip to content

Commit 12f2bfd

Browse files
committed
setMute using setVolume
1 parent b9e9059 commit 12f2bfd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api/SnapOutput.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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 * vol_factor);
79+
setVolume(mute ? 0.0f : vol);
8080
audioWriteSilence();
8181
}
8282

0 commit comments

Comments
 (0)