DQBunpackSound
FUNCTION

Prototype

DECLARE FUNCTION DQBunpackSound (BYVAL PacketID, BYVAL Slot)

Parameters

PacketID - Packet ID number

Slot - Sound slot where to place decoded sound data

Returns

An INTEGER value holding the unpacking results: > 0 Operation successful > 1 Datafile not yet opened > 2 Unknown packet ID number > 3 Bad password or unknown data > 4 Unknown sound slot

Description

Decodes the sound sample identified by specified packet ID number from the currently opened datafile, and stores it into the given sound slot; it is assumed that such a slot has been initialized with DQBinit. Decoded sounds can then be normally played with DQBplaySound.

Notes:

none

Example

See DQBopenDataFile