MIDI.SoundFontsInStreamItemGet method |
|
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 MIDIMan class section and the How to deal with MIDI protocol tutorial.
Syntax
[Visual Basic] Public Function SoundFontsInStreamItemGet ( nPlayerIndex as Int16, nFontIndex as Int32, ByRef nUniqueId As Int32, ByRef nPreset as Int32, ByRef nBank as Int32 ) as enumErrorCodes |
[C#] public enumErrorCodes SoundFontsInStreamItemGet ( Int16 nPlayerIndex, Int32 nFontIndex, ref Int32 nUniqueId, ref Int32 nPreset, ref Int32 nBank ); |
[C++] public: enumErrorCodes SoundFontsInStreamItemGet ( Int16 nPlayerIndex, Int32 nFontIndex, Int32 __gc *nUniqueId, Int32 __gc *nPreset, Int32 __gc *nBank ); |
Parameter |
Description |
|
|
nPlayerIndex |
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 (see the LastError property for further error details) |
enumErrorCodes.NOERROR (0) |
The method call was successful. |