playSoundWaveSync

Syntax

bool playSoundWaveSync(string filepath)

Arguments

filepath
The filename of the sound file to play.

Return

Returns true if the file was played, false otherwise.

Description

Plays a sound synchronously (ie the plugin will stop all operation until the sound has completed). The function first tries finding the sound file in the embedded plug-in resources, then tries searching the usual system folders for the sound file.

Example

// Play an alert sound that stops
// all operations temporarily
playSoundWaveSync("awooga.wav");

See Also

playSoundWave, playSoundWaveLoop