Copyright © 2005-2019 MultiMedia Soft

MIDI.SoundFontInit method

Previous pageReturn to chapter overviewNext page

Remarks

 

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.

 

 

Syntax

 

[Visual Basic]

Public Function SoundFontInit (

strPathname as String

) as Int32


 

[C#]

public Int32 SoundFontInit (

string strPathname

);


 

[C++]

public: Int32 SoundFontInit (

string strPathname

);


 

 

 

Parameter

Description

 

 

strPathname

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

 

 

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.