Copyright © 2001-2018 MultiMedia Soft

MIDI.SoundFontsInStreamItemGet method

Previous pageReturn to chapter overviewNext page

Remarks

 

After completing the enumeration of MIDI SoundFonts, started through the MIDI.SoundFontsInStreamEnum method, available inside the loaded MIDI stream, allows retrieving information about a specific MIDI SoundFont.

 

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.SoundFontsInStreamItemGet (

nPlayer as Integer,

nFontIndex as Long,

nUniqueId As Long,

nPreset as Long,

nBank as Long

) as enumErrorCodes


 

[C++]

short control.MIDI.SoundFontsInStreamItemGet (

short nPlayer,

long nFontIndex,

long *nUniqueId,

long *nPreset,

long *nBank

);


 

Parameter

Description

 

 

nPlayer

Number representing the zero-based index of the involved player

nFontIndex

Number representing the zero-based index of the MIDI SoundFont.

nUniqueId

Reference that, on return from the method call, will contain the unique identifier of the requested SoundFont

nPreset

Reference that, on return from the method call, will contain the preset number

nBank

Reference that, on return from the method call, will contain the base bank number or the bank number of the individual preset

 

 

 

Return value

 

Value

Meaning

 

 

Negative value

An error occurred, check the LastError property value in order to get the error code

enumErrorCodes.ERR_NOERROR (0)

The method call was successful