playSound

AudioModuleInterface::playSound

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

Declaration

virtual SoundSourceID playSound(SoundID soundID, float gain, float pitch) = 0;

Parameters

Name

Type

Description

soundID

SoundID

The sound to play or resume.

gain

float

The initial sound source gain.

pitch

float

The initial sound source pitch.

Returns

A unique SoundSourceID.

Notes

Each time this function is called, a new sound source will be played and a new SoundSourceID will be returned.