AudioModuleInterface

Inherits ModuleInterface and SystemModuleInterface.

Functions

Name

Description

load

Loads a sound in the Audio Module and returns a unique identifier to this sound.

playSound

Plays a global sound and returns a unique identifier to this sound source.

playSoundAtPosition

Plays a sound at a certain position and returns a unique identifier to this sound source.

resumeSoundSource

Resumes a paused sound source.

pauseSoundSource

Pauses a playing sound source.

stopSoundSource

Stops a playing or paused sound.

getSoundSourceState

Returns the state of a sound source.

isSoundPlaying

Checks if any sound source of a certain sound is playing.

setSoundSourcePosition

Sets the position of a sound source.

getSoundSourcePosition

Returns the position of a sound source.

setSoundSourceGain

Sets the gain of a sound source.

getSoundSourceGain

Returns the gain of a sound source.

setSoundSourcePitch

Sets the pitch of a sound source.

getSoundSourcePitch

Returns the pitch of a sound source.