There maybe something on this already in this forum, if so I apologies for the repeat but I couldn't find it.
My application is this: I have two stereo analog inputs that run into an indexed multiplexer. I would like to choose the input based on if there is signal on channel on of the channels. For example if stereo channel 1 is playing music and then stereo channel 2 starts playing music, the mux should switch to stereo channel 2. In fact, as long as there is signal on stereo channel 2, I would like the mux to select stereo channel 2.
I am trying to use an indexed multiplexer with an RMS table as the index, but I am having trouble getting this working. Any ideas on how to accomplish?