How to find input channel is connected to any instrument?

Hi,

I want to know which input channels are connected and which are not connected.
I got the active input channels from getActiveInputChannels() method, but don’t know how to find which is actually connected to any instrument.
I have 2 input channels and both are active though I haven’t connected any thing to those input channels.

Thanks in advance!

Good luck with that!

In general, most soundcards probably have no idea whether anything is plugged in, so you just have to ask the user which channels they want.