|
Copyright © 2001-2008 MultiMedia Soft
Return to Table of contents
|
|
[Visual Basic]
control.LoadSoundFromRawMemory (
nPlayer as Integer,
pBuffer as Variant,
nBufferLen as Long,
nEncodeMode as enumRAWEncodeModes,
bIsBigEndian as enumBoolean,
nFrequency as Long,
nChannels as Long
) as enumErrorCodes
|
|
[C++]
short control.LoadSoundFromRawMemory (
short nPlayer,
const VARIANT FAR& pBuffer,
long nBufferLen,
short nEncodeMode,
short bIsBigEndian,
long nFrequency,
long nChannels
);
|
|
Parameter
|
Description
|
|
|
|
|
nPlayer
|
Number representing the zero-based index of the player that will load the memory sound
|
|
pBuffer
|
Variant parameter containing the pointer to sound data previously loaded in memory.
|
|
nBufferLen
|
Length in bytes of the given buffer
|
|
nEncodeMode
|
Encode mode used to encode the RAW file.
Supported values are the following:
| |||||||||||||||||||||||||||||||||
|
bIsBigEndian
|
Boolean flag that tells if bits order inside the RAW file are little-endian or big-endian
Supported values are the following:
| |||||||||||||||||||||||||||||||||
|
nFrequency
|
Sample rate of the RAW file (e.g. 44100)
| |||||||||||||||||||||||||||||||||
|
nChannels
|
Number of channels of the RAW file: 1 for Mono or 2 for Stereo
|
|
Value
|
Meaning
|
|
|
|
|
Negative value
|
An error occurred (see the LastError property for further error details)
|
|
enumErrorCodes.NOERROR (0)
|
The file has been loaded correctly.
|