LoadSfx

Category: Audio

Back to System Functions


Signature

LoadSfx(soundPath As String)

Returns

Integer

Description

Loads a sound effect file and returns a sound-effect handle.

If the file cannot be opened, the result is 0.

New sound effects start with full volume, centered pan, and normal speed.

Example

jumpSfx = LoadSfx("Sounds/jump.wav")