Skip to content

Commit bd61d08

Browse files
committed
Sound (macOS): report the volume of muted device as 0%
1 parent 4672b78 commit bd61d08

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/detection/sound/sound_apple.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,9 @@ const char* ffDetectSound(FFlist* devices /* List of FFSoundDevice */)
9494
}, 0, NULL, &dataSize, &active) == kAudioHardwareNoError)
9595
device->active = !!active;
9696

97-
if (!muted)
97+
if (muted)
98+
device->volume = 0;
99+
else
98100
{
99101
float volume;
100102
dataSize = sizeof(volume);

0 commit comments

Comments
 (0)