Copyright © 2001-2018 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 MIDI object section and the How to deal with MIDI protocol tutorial.

 

 

Syntax

 

[Visual Basic]

control.MIDI.SoundFontInit (

strPathname as String

) as Long


 

[C++]

long control.MIDI.SoundFontInit (

BSTR 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, 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.