Ralphy, I've made good use of the new squeezeplay ability to use environmental variables to select the desired Audio Device. I use this to switch between playing audio inside and outside the house. The inside audio amp is hooked up to the coax SPDIF output and outside is hooked up to the analogue audio out.
I tried to automate the switch today but even with a 10 second delay, squeezeplay doesn't seem to be picking up on the environment variable change. It will detect it if I close squeezeplay a second time and restart it. Here's how I tried to automate the switch from inside audio to both inside and outside audio. I set up two cmd batch files with shortcuts on the desktop. InsideAudio.bat REM Set Environment Variable so SqueezePlay uses the "Realtek HDA SPDIF Out" SETX USEPADEVICE "SPDIF Out (Realtek HDA SPDIF Out)" c: CD\Program Files (x86)\SqueezePlay Timeout 10 Start squeezeplay.exe ******************************************** Note: This works great at first. The environmental variable changes (I leave USEPAHOSTAPI set to "Windows WDM-KS" because it doesn't need to change) ******************************************** OutsideAudio.Bat (Really enables the same stream inside and outside). REM Set Environment Variable so SqueezePlay uses the Virtual Cable SETX USEPADEVICE "Line Out (Virtual Cable 1)" REM Set up Audio Repeater to split the Virtual Cable output stream for both inside and outside start "Inside_Audio_Stream" "%programfiles%\Virtual Audio Cable\audiorepeater_ks.exe" /Input:"Virtual Cable 1" /Output:"Realtek HDA SPDIF Out" /BitsPerSample:32 /Autostart start "Outside_Audio_Stream" "%programfiles%\Virtual Audio Cable\audiorepeater_ks.exe" /Input:"Virtual Cable 1" /Output:"Realtek HD Audio Output" /BitsPerSample:32 Timeout 10 c: CD C:\Program Files (x86)\SqueezePlay Start squeezeplay.exe **************************************** Again, This all works fine. The problem happens when I change between the 2 modes using these scripts. For example. I use the insideaudio script then listen for awhile. Stop squeezeplay. Run the other script and even with the 10 second delay, it doesn't seem to apply the environment variable change. I can open the environment variables and see the change occurred. However, without doing anything else, if I exit squeezeplay then start it again, it plays fine through the desired audio device. The same thing happens if I then switch it to outside. Any thoughts? I'm using 7.8.0 r417 ------------------------------------------------------------------------ geobrick's Profile: http://forums.slimdevices.com/member.php?userid=56650 View this thread: http://forums.slimdevices.com/showthread.php?t=96573 _______________________________________________ discuss mailing list [email protected] http://lists.slimdevices.com/mailman/listinfo/discuss
