Sound (macOS): report the volume of muted device as 0%

This commit is contained in:
李通洲
2025-05-13 09:35:13 +08:00
parent 4672b78481
commit bd61d08afe
+3 -1
View File
@@ -94,7 +94,9 @@ const char* ffDetectSound(FFlist* devices /* List of FFSoundDevice */)
}, 0, NULL, &dataSize, &active) == kAudioHardwareNoError)
device->active = !!active;
if (!muted)
if (muted)
device->volume = 0;
else
{
float volume;
dataSize = sizeof(volume);