*Obligitory bum xeno reference*
Looking forward to this. USB Headset + 3.5mm Speakers makes this program a life-saver.
# asc.exe /path/to/somejsfile.js
var devices = getAudioDevices(1);var game, speakers;for (var i = 0; i < devices.length; i++) { console.log(devices[i].id + " - " + devices[i].name + " - " + devices[i].flags); if (devices[i].name == "GAME") game = devices[i]; if (devices[i].name == "Speakers") speakers = devices[i];}setDefaultDevice(speakers.id);sleep(2000);setDefaultDevice(game.id);
sweet, now need a mac version.. with the application specific audio streams the mac has issues with audio and switching devices.you basically have to stop all audio sources connect then disconnect then try audio again before it will switch headphones and devices.. this tool would be useful, although my understanding of macs is only from a user end point, I've never had to dev for it.
hey hey C++ and OBJ C has it's places.. mostly in a fiery hole..
All this programming talk is giving me a code boner.
DDDDDDDDDDDDDOUBLE POAST.On a slightly related note.I created a beta app that redirects the sound from a specific process to an audio device.https://github.com/xenolightning/AudioSwitcher.AudioApi/releasesIt won't work for every application, but it's worth trying if you ever wanted this functionality I've successfully done this with VLC so far :>