Tutorial: Play a .wav file

The PlayWav sample application shows you how to play a .wav file using the libasound library. The BlackBerry 10 Native SDK provides the QNX Sound Architecture (QSA) for handling audio files. The QSA provides several multimedia libraries, but this tutorial focuses on handling a .wav file using the libasound library.

Device image showing the finished PlayWav sample app.

You will learn to:

  • Open a .wav file in your application
  • Determine the properties of a .wav file
  • Prepare a .wav file for playback
  • Handle audio device events
  • Handle audio buffer underruns

Last modified: 2013-12-21

comments powered by Disqus