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?
Save up to 50% on our desktop apps during our Year End Sale!Save up to 50% on our desktop apps during our Year End Sale, including DisplayFusion, ClipboardFusion, FileSeek, LogFusion, TrayStatus, and VoiceBot!Save up to 50% on our desktop apps during our Year End Sale!

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
Keith Lammers (BFS)
Contributors
-
Date Created
Mar 27, 2017
Date Last Modified
20d ago

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);
    }
}