playSoundWave

Syntax

bool playSoundWave(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 asynchronously (ie the plugin will continue while the sound is playing). 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 a thank you sound when
// the user buys the plug-in
playSoundWave("snd\\thanks.wav");

See Also

playSoundWaveLoop, playSoundWaveSync