Processing Ajax...

Title

Message

Confirm

Confirm

Confirm

Confirm

Are you sure you want to delete this item?

Confirm

Are you sure you want to delete this item?

Confirm

Are you sure?

Mute/Unmute Audio

Description
This script will toggle mute on the current audio output device.
Language
C#.net
Minimum Version
Created By
Tommy21
Contributors
-
Date Created
17d ago
Date Last Modified
17d ago

Scripted Function (Macro) Code

using System;
using System.Drawing;

public static class DisplayFusionFunction
{
    public static void Run(IntPtr windowHandle)
    {
        // Get the current mute state and toggle it
        bool isCurrentlyMuted = BFS.Audio.GetMute();
        BFS.Audio.SetMute(!isCurrentlyMuted);
    }
}