DQBloadRawSound
FUNCTION

Prototype

DECLARE FUNCTION DQBloadRawSound (Slot AS INTEGER, FileName AS STRING,
                                  Offset AS LONG, Length AS INTEGER)

Parameters

Slot - Sound slot to load the sound into

FileName - Sound file name with full extension

Offset - File position where to begin to load in bytes

Length - Sound data length in bytes

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 Cannot read past the end of file > 4 Specified sound slot does not exist

Description

Loads sound data from a specified position on a given file. This function does not check for the data format, and directly stores the sound into the specified slot. DQBloadRawSound can be useful to handle sound data files holding multiple sounds data, as well as when DQBloadSound fails the sound data format check.

Notes:

none