Syntax
Result = dbMakeMemblockFromSound(MemblockID, SoundID)
Description
If #PB_Any is used as the MemblockID parameter, the new ID will be returned as 'Result'. Otherwise the value of 'Result' is the same value passed as the MemblockID parameter.
This command will make a memblock from a sound. The source resource must exist or the command will fail. The format for creating and gathering information on a sound is obtained in the following format. The offsets are specified in Bytes. Refer to the standard Windows SDK documentation on the WAVEFORMATEX data structure for the meanings of each field:
OFFSET 0 : wFormatTag
OFFSET 4 : nChannels
OFFSET 8 : nSamplesPerSec
OFFSET 12 : nAvgBytesPerSec
OFFSET 16 : nBlockAlign
OFFSET 20 : wBitsPerSample
OFFSET 24 : cbSize
See Also
dbMakeMemblockFromBitmap, dbMakeMemblockFromImage, dbMakeMemblockFromMesh, dbMakeMemblockFromSound, dbMakeSoundFromMemblock