Copyright © 2005-2018 MultiMedia Soft

MIDI.SoundFontsInStreamEnum method

Previous pageReturn to chapter overviewNext page



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.





[Visual Basic]

Public Function SoundFontsInStreamEnum (

nPlayerIndex as Int16,

ByRef nCount As Int32

) as enumErrorCodes



public enumErrorCodes SoundFontsInStreamEnum (

Int16 nPlayerIndex,

ref Int32 nCount




public: enumErrorCodes SoundFontsInStreamEnum (

Int16 nPlayerIndex,

Int32 __gc *nCount










Number representing the zero-based index of the involved player


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



Return value






Negative value

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

enumErrorCodes.NOERROR (0)

The method call was successful.