check if audio is muted python
#include <stdio.h>
#include <Windows.h>
int main() {
bool isMuted = false;
BOOL muteState;
muteState = GetSystemMetrics(SM_MUTE);
if (muteState) {
isMuted = true;
printf("Audio is muted\n");
} else {
printf("Audio is not muted\n");
}
return 0;
}