INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Need command line switch to set audio output device  (Read 7630 times)

naenyc

  • Member
  • *
  • Posts: 3
Need command line switch to set audio output device
« on: February 09, 2011, 05:35:05 pm »

The music at my sister's house can be played into three zones, two controlled by an Onkyo 806 and another by a older receiver.

Part of the flexibility of the graphical program I'm writing is that it allow different sound sources in any combination for the three zones, e.g:

media player
tuner
ipod
tv music
and so on

The default sound device cannot be set ahead of time, as will be shown below, and regretfully windows 7 behaves differently than XP.

In XP, a simple regedit before launch could select the output, so a scenario such as this worked just fine:

regedit zone 1 output
launch media jukebox

regedit zone 2 output
launch another media jukebox

each zone could be controlled independently and all just worked fine.

In Windows 7, they would both end up playing to zone 2 output.

Note: regedit no longer works for Windows 7, and alternatives such as
VistaAudioChanger/CoastalAudioChanger/AudioSwitch is required.

Is it possible to add a command line switch to select the audio?

Thanks,
Naenyc


One of the "features" of the Onkyo receivers is that zone 2 can only have analog input, which is no problem when
zone 1 and zone2 are the same. Simply select Realtek analog for zone 1, duplicate for zone 2 and all works.

However if zone 1 and zone2 are to be controlled independently, then zone1 needs to select something like "HDMI" and
zone2 Realtek analog.

Another alternative is if zone1 is played by itself, it might want Realtek DIGITAL to enjoy the signal processing features.

Three different output possibilities for zone1, which cannot be predetermined.

Logged

cncb

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 3123
Re: Need command line switch to set audio output device
« Reply #1 on: February 10, 2011, 07:49:23 am »

There is "MC15.exe /SoundcardSwitch" which might give you what you want (run it like this from the command line to give you usage help).
Logged
-Craig    MO 4Media remote and player:  Android/TV/Auto | iOS | Windows 10/UWP

naenyc

  • Member
  • *
  • Posts: 3
Re: Need command line switch to set audio output device
« Reply #2 on: February 26, 2011, 07:32:07 pm »

Thanks for your response ... been away for awhile.

From what I'm observing the switch is behaving like the other audio switchers.

C:\Windows\System32\mc16.exe /soundcardswitch defaultbyindex:0

Switches to audio device 0, but doesn't launch Media Center 16, which seems to defeat the purpose of the switch.

Even if I launch MC16.exe again, I would end up in the same situation where they both use the same device.

C:\Windows\System32\mc16.exe /soundcardswitch defaultbyindex:0
C:\Windows\System32\mc16.exe

C:\Windows\System32\mc16.exe /soundcardswitch defaultbyindex:1
C:\Windows\System32\mc16.exe

Results in both using device "1".

Cannot locate MC14.exe on my machine as I would just default it to a different device.

Really don't wish to purchase both "15" and "16" versions, though more than willing to buy 16.

Thanks again.


Logged

naenyc

  • Member
  • *
  • Posts: 3
Re: Need command line switch to set audio output device
« Reply #3 on: March 05, 2011, 07:32:09 pm »

Maybe I'm missing something, the current implementation seems to preclude multiple instances of Media Center on the same machine

This would seem relatively straightforward feature to implement.

A command line option that overrides the default set from within the program.

naenyc

Logged
Pages: [1]   Go Up