Copyright © 2001-2019 MultiMedia Soft

LoadSoundFastFromMemory method

Previous pageReturn to chapter overviewNext page

Remarks

 

Loads a sound file stored inside a memory buffer. The sound file can be a stream file (see the LoadSound method for accepted stream formats) or a MOD music file.

This method acts exactly as the LoadSoundFromMemory method but performs a less detailed analysis for files in MP3 format

 

A successful call to this method will fire the SoundLoaded event.

 

 

Syntax

 

[Visual Basic]

control.LoadSoundFastFromMemory (

nPlayer as Integer,

pBuffer as Variant,

nBufferLen as Long

) as enumErrorCodes


 

[C++]

short control.LoadSoundFastFromMemory (

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.