Remarks
Loads a song, previously encrypted through the CryptSound™ application, from the given memory buffer through a secondary thread..
Accepted formats for the original (not encrypted) file are the same supported by the LoadSound method.
Once the secondary thread is completed, a SoundSyncLoaded event will be fired.
For further details about encrypted songs usage check the How to protect your music through encryption section.
Syntax
[Visual Basic]
control.LoadEncryptedSoundFromMemorySync (
nPlayer as Integer,
pBuffer as Variant,
nBufferLen as Long,
strDecriptionKey as String
) as enumErrorCodes
|
|
[C++]
short control.LoadEncryptedSoundFromMemorySync (
short nPlayer,
const VARIANT FAR& pBuffer,
long nBufferLen,
LPCTSTR strDecriptionKey
);
|
|
Parameter
|
Description
|
|
|
nPlayer
|
Number representing the zero-based index of the player that will load the sound
|
pBuffer
|
Variant parameter containing the pointer to sound data previously loaded in memory.
|
nBufferLen
|
Length in bytes of the given buffer
|
strDecriptionKey
|
String containing the key used to originally encrypt the song: its length can be from a minimum of 16 characters to a maximum of 32 characters.
|
Return value
Value
|
Meaning
|
|
|
enumErrorCodes.NOERROR (0)
|
The song file has been loaded successfully.
|
Negative value
|
An error occurred: see the LastError property for further error details or for a list of the possible error values.
|
|