MIDI.SeekToPosition method |
|
Remarks
Moves the given player to the specified position over the current MIDI song.
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.SeekToPosition ( nPlayer as Integer, fPosition as Double, nPositionUnit as enumMidiPositionUnits, bPerformDecay as enumBoolean ) as enumErrorCodes |
[C++] short control.MIDI.SeekToPosition ( short nPlayer, double fPosition, short nPositionUnit, short bPerformDecay ); |
Parameter |
Description |
||||||||||||
|
|
||||||||||||
nPlayer |
Number representing the zero-based index of the involved player |
||||||||||||
fPosition |
Number representing the position to reach; its value depends upon the value of the nPositionUnit parameter below. |
||||||||||||
nPositionUnit |
The unit of measure used for the position value stored inside fPosition parameter above. Supported values are the following:
|
||||||||||||
bPerformDecay |
Boolean value that specifies if the sound will decay naturally or will be stopped abruptly when the sound position is changed. This setting overrides an eventual setting performed through the MIDI.DecayModeSet method. Supported values are the following:
|
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 |