MIDI.SoundFontInitFromMemory method |
|
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 MIDI object section and the How to deal with MIDI protocol tutorial.
Syntax
[Visual Basic] control.MIDI.SoundFontInitFromMemory ( pBuffer as Variant, nBufferLen as Long ) as Long |
[C++] long control.MIDI.SoundFontInitFromMemory ( const VARIANT FAR& pBuffer, long nBufferLen ); |
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, check the LastError property value in order to get the error code |
Other values |
The method call was successful and the returned value is the unique identifier of the SoundFont. |