Fix PlayWav to listen for Audio Device events

Audio was not being routed to HDMI when HDMI was connected.  We now listen for
Audio Device events and switch to the device that it indicates.
Merge pull request #14 from jhoffmannrim/master

Fix PlayWav to listen for Audio Device events
Fix bbutil render_text indices (saves memory).
Merge pull request #32 from anhu/master

Cherry-pick and merge in a fix that applies to master branch
Merge pull request #54 from ablake/next

Adding the Gamepad sample project.
Merge remote-tracking branch 'origin/next'
Merge pull request #56 from jhoffmannrim/master

Update for NDK Gold
fix typo
Merge pull request #57 from jhoffmannrim/master

Fix typo
Merge branch 'next' of https://github.com/blackberry/NDK-Samples into next
Merge pull request #58 from ablake/next

Updating the Gamepad sample
Adding analog trigger support to the Gamepad sample.
Merge branch 'next' of https://github.com/blackberry/NDK-Samples into next