DQBloadSound
FUNCTION

Prototype

DECLARE FUNCTION DQBloadSound (Slot AS INTEGER, FileName AS STRING)

Parameters

Slot - Sound slot to load sound into

FileName - Sample file name with full extension

Returns

An INTEGER value holding the loading results: > 0 Loading successful > 1 Cannot open file, or file does not exist > 2 General reading error > 3 Bad or unknown file format > 4 Sound format not yet supported > 5 Sound file exceeds the 64K length limit > 6 Specified sound slot does not exist

Description

Loads a sound sample from file and stores it into EMS. The "Slot" parameter identifies the sound effect and is used by the DQBplaySound function.

Notes:

Only 8-bit mono WAV files are supported for now, so be warned.

Example

See DQBplaySound example