Copyright © 2005-2019 MultiMedia Soft

MIDI.SoundFontsInStreamEnum method

Previous pageReturn to chapter overviewNext page

Remarks

 

Enumerates MIDI SoundFonts available inside the loaded MIDI stream. After completing the enumeration, information about each of the detected MIDI SoundFonts can be obtained through the MIDI.SoundFontsInStreamItemGet method.

 

The list of detected MIDI SoundFonts stays available in memory until a new enumeration is performed through a call to this same method so a new enumeration always discards the previous list.

 

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

nPlayerIndex as Int16,

ByRef nCount As Int32

) as enumErrorCodes


 

[C#]

public enumErrorCodes SoundFontsInStreamEnum (

Int16 nPlayerIndex,

ref Int32 nCount

);


 

[C++]

public: enumErrorCodes SoundFontsInStreamEnum (

Int16 nPlayerIndex,

Int32 __gc *nCount

);


 

 

 

Parameter

Description

 

 

nPlayer

Number representing the zero-based index of the involved player

nCount

Reference that, on return from the method call, will contain the number of MIDI SoundFonts detected inside the loaded MIDI stream.

 

 

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.