05-04-2012 05:15 PM
I could have sworn that I just posted about this, but I'm not seeing my post, so here goes...
When I plug my PlayBook into HDMI, I'd like the audio to stop coming out of the PlayBook speakers and start coming out of the TV.
I think I've determined that rather than calling snd_pcm_open_preferred, I need to call:
... and then:
snd_pcm_open(&pcm_handle, card, device, SND_PCM_OPEN_PLAYBACK)
... although I'm not sure what value to use for "card".
(I've tried using the value of "0", which is the value returned by snd_pcm_open_preferred)
When I do this, the sound continues to play from the PlayBook speakers, even though audiodevice_get returns a audio_device_path that refers to HDMI, and even though the device ID is 2, which matches up with:
... which shows HDMI as being 2.
Not sure what I'm doing wrong.
05-04-2012 05:46 PM
I had gotten this example from Froggyface/Trevor Nunes, from some others. Show an example of how a standalone app plays audio via HDMI. should help you out.