I am trying to Set default audio device when two playback devices with same names are connected.
Details: For single or playback devices with a different name, I can set default using nircmd.exe. But When connecting a USB Speaker in my laptop. In Playback devices it is showing two Speakers with the same name as "Speakers". In this scenario, I'm not able to set default playback device as per my request. It is by default setting first Speaker as Set Default.
So can anybody please help me on this.
Got the Solution. For this we can just refer First Child of Speaker. If it matches with your requirement. Then we'll get the reference of that and perform suitable action.