Title

Message

Confirm

Switch Audio Device and Launch a Game

Description
This function switches the default playback device (headphones in this example), then launches a game (DinoHordeGame.exe in this example). The function then waits for the game to exit, and switches the default playback device again (speakers in this example). To select an audio device, remove the name from the BFS.Audio.SetDefaultPlaybackSounds function, so that it shows BFS.Audio.SetDefaultPlaybackSounds( and then press Ctrl + Space. A window will pop-up allowing you to select which device you want to use in the function.
Language
C#
Minimum Version 7.0.0+
Created By Keith Lammers (BFS)
Contributors -
Date Created
Sep 30, 2014
Date Last Modified
Oct 3, 2014

Scripted Function (Macro) Code