Copyright © 2005-2019 MultiMedia Soft

MIDI.SoundFontInitFromMemory method

Previous pageReturn to chapter overviewNext page

Remarks

 

Initializes a MIDI SoundFont stored inside a memory buffer. After initialization the SoundFont stays in memory until the MIDI.SoundFontFree method is called.

 

For further details about the use of MIDI protocol see the MIDIMan class section and the How to deal with MIDI protocol tutorial.

 

 

Syntax

 

[Visual Basic]

Public Function SoundFontInitFromMemory (

pBuffer() as Byte,

nBufferLength as Int32

) as Int32


 

[C#]

public Int32 SoundFontInitFromMemory (

byte[] pBuffer,

Int32 nBufferLength

);


 

[C++]

public: Int32 SoundFontInitFromMemory (

unsigned char __gc[] pBuffer,

Int32 nBufferLength

);


 

Parameter

Description

 

 

pBuffer

Variant parameter containing the pointer to SoundFont data previously loaded in memory.

nBufferLen

Length in bytes of the given buffer

 

 

Return value

 

Value

Meaning

 

 

Value = 0

An error occurred (see the LastError property for further error details)

Other values

The method call was successful and the returned value is the unique identifier of the SoundFont.