Skip to content

Audio system

Romain Milbert edited this page Oct 2, 2020 · 2 revisions

On the AudioSystem's creation, an audio device is used. Like its name implies, it represents the audio output device that will be used. When adding an AudioSystem with no argument, a "default device" is used.

Opening a specific device

Any available audio device on your computer can be used. Those can be fetched by calling Raz::AudioSystem::recoverDevices(). One of the recovered names can then be given at the AudioSystem's creation, or later as an argument to its open() member function.

NB: changing the device will invalidate all sounds which were previously created. These must be recreated.

Clone this wiki locally