title: Playing 2 musics through 2 different sound cards at same time
body: <p>Trying something pretty out of the box... I have a simple app with a button that when pushed, plays music out of the audio jack of my android tablet. </p>
  
  <pre><code>public void btn1 (View view) {
      MediaPlayer mp = MediaPlayer.create(this, R.raw.xxx);
      mp.start();
  }
  </code></pre>
  
  <p>I've now added a usb audio interface (through a micro usb adapter) and I can hear audio out of it. </p>
  
  <p>I'm able to list the sound cards with this</p>
  
  <pre><code>AudioDeviceInfo[] devices = audioManager.getDevices(AudioManager.GET_DEVICES_OUTPUTS);
  
  for (AudioDeviceInfo device : devices) {
      int b = device.getId();
      int d = device.getType();
      CharSequence productName = device.getProductName();
  }
  </code></pre>
  
  <p>How do I route music so that I can play 2 different music at once, one through usb and the other through the headphone jack?</p>