Copyright © 2005-2018 MultiMedia Soft

MIDI.SoundFontInit method

Previous pageReturn to chapter overviewNext page



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


In case the MIDI SoundFont should be stored inside a memory buffer you should use the MIDI.SoundFontInitFromMemory method.

In case the MIDI SoundFont should be stored inside a ZIP file you should use the MIDI.SoundFontInitFromZip method.


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





[Visual Basic]

Public Function SoundFontInit (

strPathname as String

) as Int32



public Int32 SoundFontInit (

string strPathname




public: Int32 SoundFontInit (

string strPathname










String containing the absolute pathname of the SoundFont file in SF2 format.



Return value






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.