DIE Engine
Loading...
Searching...
No Matches
Audio Class Reference

#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

Detailed Description

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

Constructor & Destructor Documentation

◆ Audio()

Audio::Audio ( )

Member Function Documentation

◆ init()

void Audio::init ( )

Initialise the audio engine and load the built-in sounds.

◆ soundLoad()

QSpatialSound * Audio::soundLoad ( const QString & resource)

Load a spatial sound from a resource path.

Parameters
resourceqrc or file URL of the sound
Returns
new spatial sound, or nullptr when no audio engine is available

◆ soundUnload()

void Audio::soundUnload ( QSpatialSound * sound)

Stop and release a spatial sound.

◆ terminate()

void Audio::terminate ( )

Unload the built-in sounds and shut the audio engine down.

Member Data Documentation

◆ audioEngine

QAudioEngine* Audio::audioEngine

◆ audioListener

QAudioListener* Audio::audioListener

◆ soundDoorClose

QSpatialSound* Audio::soundDoorClose

◆ soundDoorLocked

QSpatialSound* Audio::soundDoorLocked

◆ soundDoorOpen

QSpatialSound* Audio::soundDoorOpen

The documentation for this class was generated from the following files: