|
DIE Engine
|
#include <audio.h>
Public Member Functions | |
| Audio () | |
| void | init () |
| Initialise the audio engine and load the built-in sounds. | |
| void | terminate () |
| Unload the built-in sounds and shut the audio engine down. | |
| QSpatialSound * | soundLoad (const QString &resource) |
| Load a spatial sound from a resource path. | |
| void | soundUnload (QSpatialSound *sound) |
| Stop and release a spatial sound. | |
Public Attributes | |
| QAudioEngine * | audioEngine |
| QAudioListener * | audioListener |
| QSpatialSound * | soundDoorOpen |
| QSpatialSound * | soundDoorClose |
| QSpatialSound * | soundDoorLocked |
DIE ENGINE Depth Integration Engine / A modern ray-caster (c) Fred's Lab 2024-2026 Frédéric Meslin / info@.nosp@m.fred.nosp@m.slab..nosp@m.net SPDX-License-Identifier: MIT If used commercially, contributions, donations are highly appreciated.
audio wrapper
| Audio::Audio | ( | ) |
| void Audio::init | ( | ) |
Initialise the audio engine and load the built-in sounds.
| QSpatialSound * Audio::soundLoad | ( | const QString & | resource | ) |
Load a spatial sound from a resource path.
| resource | qrc or file URL of the sound |
| void Audio::soundUnload | ( | QSpatialSound * | sound | ) |
Stop and release a spatial sound.
| void Audio::terminate | ( | ) |
Unload the built-in sounds and shut the audio engine down.
| QAudioEngine* Audio::audioEngine |
| QAudioListener* Audio::audioListener |
| QSpatialSound* Audio::soundDoorClose |
| QSpatialSound* Audio::soundDoorLocked |
| QSpatialSound* Audio::soundDoorOpen |