Copyright © 2001-2019 MultiMedia Soft

MIDI.StreamPreloadSamples method

Previous pageReturn to chapter overviewNext page

Remarks

 

Pre-loads samples of the MIDI stream loaded inside the given player allowing to avoid CPU spikes during playback of the MIDI stream.

 

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]

control.MIDI.StreamPreloadSamples (

nPlayer as Integer

) as enumErrorCodes


[C++]

short control.MIDI.StreamPreloadSamples (

short nPlayer

);


 

 

 

Parameter

Description

 

 

nPlayer

Number representing the zero-based index of the involved player

 

 

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.