StopSound

From The Official Visionaire Studio: Adventure Game Engine Wiki
Revision as of 21:28, 30 September 2014 by Vis apiuser (talk)

stopSound

Available since: v4.0
Stops the specified sound.

Lua Syntax:

stopSound(soundID)

Arguments

soundID

int - ID of the sound which should be stopped

Flags

Return Values

status
True if sound was stopped successfully, false otherwise.

Examples

Example 1:

local soundID = getSoundId('vispath:sounds/example.ogg')
stopSound(soundID)