MIDI.VoicesGet method |
|
Remarks
Obtains the maximum number of voices to play at a time for supporting polyphony on the loaded MIDI stream. The maximum number can be modified through the MIDI.VoicesSet method.
The default number of voices for MIDI streams can be determined through the MIDI.VoicesDefaultGet method.
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.VoicesGet ( nPlayer as Integer, nVoices as Integer ) as enumErrorCodes |
[C++] short control.MIDI.VoicesGet ( short nPlayer, short *nVoices ); |
Parameter |
Description |
|
|
nPlayer |
Number representing the zero-based index of the involved player |
nVoices |
Reference that, on return from the method call, will contain the maximum number of voices to play at a time. |
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 |