Copyright © 2005-2019 MultiMedia Soft

LoadSoundFromMemorySync method

Previous pageReturn to chapter overviewNext page

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 invokes the CallbackForPlayersEvents delegate with the nEvent parameter set to EV_SOUND_SYNC_LOADED.

 

 

Syntax

 

[Visual Basic]

Public Function LoadSoundFromMemorySync (

nPlayerIndex as Int16,

pBuffer() as Byte,

nBufferLength as Int32

) as enumErrorCodes


 

[C#]

public enumErrorCodes LoadSoundFromMemorySync (

Int16 nPlayerIndex,

byte[] pBuffer,

Int32 nBufferLength

);


 

[C++]

public: enumErrorCodes LoadSoundFromMemorySync (

Int16 nPlayerIndex,

unsigned char __gc[] pBuffer,

Int32 nBufferLength

);


 

 

Parameter

Description

 

 

nPlayerIndex

Number representing the zero-based index of the player that will load the memory sound

pBuffer

Buffer containing sound data

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 method call was successful.