LoadSoundFromMemorySync method |
|
Remarks
Loads a sound file, stored in memory, through a secondary thread. The sound file can be a stream file (see the LoadSound method for accepted stream formats) or a MOD music file.
A successful call to this method will fire the SoundSyncLoaded event.
Syntax
[Visual Basic] control.LoadSoundFromMemorySync ( nPlayer as Integer, pBuffer as Variant, nBufferLen as Long ) as enumErrorCodes |
[C++] short control.LoadSoundFromMemorySync ( short nPlayer, const VARIANT FAR& pBuffer, long nBufferLen ); |
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 |
Return value
Value |
Meaning |
|
|
Negative value |
An error occurred (see the LastError property for further error details) |
enumErrorCodes.NOERROR (0) |
The file has been loaded correctly. |