Shows how to play spatialized audio with Magnum.
The audio scene includes a 3D sound source and a (default) listener, which are visualized as a sphere and a box respectively, the listener initially facing the sound source. The sound source can be moved around the listener using the keyboard.
- Right / Left — rotate source on the Y axis
- Up / Down — rotate source on the local X axis
- Page Up / Page Down — move the source away/towards the listener
This example was originally contributed by Jonathan Hale. The sound file used is a Chimes Sound Effect from http:/
Full source code is linked below and together with assets also available in the magnum-examples GitHub repository. This example depends on the Audio library and the StbVorbisAudioImporter plugin which is not a part of the core Magnum repository, see their documentation for usage instructions.