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





[Visual Basic]

control.MIDI.SoundFontsInStreamEnum (

nPlayer as Integer,

nCount as Long

) as enumErrorCodes



short control.MIDI.SoundFontsInStreamEnum (

short nPlayer,

long *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, check the LastError property value in order to get the error code

enumErrorCodes.ERR_NOERROR (0)

The method call was successful