mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-09-13 02:42:09 +02:00
Sound (macOS): report the volume of muted device as 0%
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user