Processing Ajax...

Title
Close Dialog

Message

Confirm
Close Dialog

Confirm
Close Dialog

Confirm
Close Dialog

Prompt to Select an Audio Device

Description
This script will prompt you to select an audio device to set as the default playback and communications device.
Language
C#.net
Minimum Version
Created By
Crisdavid
Contributors
-
Date Created
Mar 27, 2017
Date Last Modified
Mar 27, 2017

Scripted Function (Macro) Code

using System;
using System.Drawing;

public static class DisplayFusionFunction
{
    public static void Run()
    {
        // Prompt to select an audio device
        string selectedAudioDevice = BFS.Dialog.GetUserInputList("Please select an audio device:", BFS.Audio.GetPlaybackDevices());

        // Set the selected device as the default playback device
        BFS.Audio.SetDefaultPlaybackSounds(selectedAudioDevice);
        
        // Set the selected device as the default communication device
        BFS.Audio.SetDefaultPlaybackCommunications(selectedAudioDevice);
    }
}