Introduction

This sample demonstrates OpenAL-based sound playback.

Controls

None.

Implementation

This application loads an uncompressed WAV file and plays back its contents.

1. It creates an AudioContext using default playback parameters.

2. It opens the WAV file, decodes its header and pushes its sound data to an OpenAL buffer.

3. It attaches the buffer to an OpenAL source and starts playing that source.

4. It waits until the source stops playing, destroyes all OpenAL resources and exits.