Older Newer
Mon, 30 Dec 2019 14:05:36 . . . . SyneRyder [reformat width for ebooks]


Changes by last author:

Added:
= 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 ==

<code>

// Play a thank you sound when

// the user buys the plug-in

playSoundWave("snd\\thanks.wav");

</code>

== See Also ==

playSoundWaveLoop, playSoundWaveSync