I hook up my macbook air to the receiver (Harman Kardon avr265) to watch movies on my home theatre which has a 5.1 audio setup. I have selected encoded output so for the formats that the receiver supports VLC sends an encoded audio stream via HDMI which works great.
For audio formats which the reciever does not support it gets sent as PCM to the receiver and to get the best out of my set up I need to switch OSX sound output to 6 channels if the video I'm watching has 5.1 sound. Similarly I need to switch OSX sound output to 2 channels if the video I'm watching has 2 channels, so that the receiver's nice conversion to 5.1 can be utilized.
Is there a way to automatically switch OSX sound output between 6 channels and stereo depending on the number of channels in the audio stream that is being played? Or is there another solution?