Switch Player Output

Hi all,
First off i’m not sure if this is even possible, I’ve tried myself but had no success. Basically what i want to do is have a script to change the output device of each of my players. Currently my setup is like this.

Player 0_0 = Soundcard 1
Player 0_1 = Soundcard 2
Player 0_2 = Soundcard 3

What i want is a script that when run it will change the players to run their output on the same sound card like

Player 0_0 = Soundcard 1
Player 0_1 = Soundcard 1
Player 0_2 = Soundcard 1

Now I’ve seen a script on here that does it for the encoder input (https://www.mairlist.com/forum/index.php/topic,5201.0.html) Just wondering is the same thing possible for Player outputs ?

Many Thanks in Advanced
Dan

From v4.1 you can use Instance.GetDeviceConfig.SetSingleAssignment to change the playback device for a particular players. The three parameters that you pass correspond to the section name, key and value of the devices.ini file:

See here for an example (German section, but the code is very trivial): https://www.mairlist.com/forum/index.php/topic,6515.msg46194.html#msg46194

[quote=“Torben, post:2, topic:8835”]From v4.1 you can use Instance.GetDeviceConfig.SetSingleAssignment to change the playback device for a particular players. The three parameters that you pass correspond to the section name, key and value of the devices.ini file:

See here for an example (German section, but the code is very trivial): https://www.mairlist.com/forum/index.php/topic,6515.msg46194.html#msg46194[/quote]

Many thanks, works a treat!

Great. And sorry for the very late reply, hadn’t noticed your post until yesterday.