Copyright © 2005-2019 MultiMedia Soft

MIDI.SoundFontApply method

Previous pageReturn to chapter overviewNext page

Remarks

 

Applies a SoundFont, previously initialized through the MIDI.SoundFontInit method, to the MIDI stream loaded inside the given player.

 

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 SoundFontApply (

nPlayerIndex as Int16,

nUniqueId as Int32

) as enumErrorCodes


 

[C#]

public enumErrorCodes SoundFontApply (

Int16 nPlayerIndex,

Int32 nUniqueId

);


 

[C++]

public: enumErrorCodes SoundFontApply (

Int16 nPlayerIndex,

Int32 nUniqueId

);


 

 

 

Parameter

Description

 

 

nPlayerIndex

Number representing the zero-based index of the involved player

nUniqueId

Number representing the unique identifier of the MIDI SoundFont as returned by a previous call to one between the MIDI.SoundFontInit or MIDI.SoundFontInitFromMemory or MIDI.SoundFontInitFromMemory methods.

 

 

Return value

 

Value

Meaning

 

 

Negative value

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

enumErrorCodes.NOERROR (0)

The method call was successful.