Preloads the samples required by a MIDI file stream.
BOOL BASS_MIDI_StreamLoadSamples( HSTREAM handle );
|handle||The MIDI stream handle.|
|BASS_ERROR_HANDLE||handle is not valid.|
|BASS_ERROR_NOTAVAIL||The stream is for real-time events only, so it is not possible to know what presets are going to be used. Use BASS_MIDI_FontLoad instead.|
The samples loaded by this function are subject to automatic compacting via the BASS_CONFIG_MIDI_COMPACT option, so it is probably wise to disable that option when using this function, to avoid any chance of the loaded samples subsequently being automatically unloaded.
This function is not affected by any filtering that may have been enabled via BASS_MIDI_StreamSetFilter; the samples loaded will be those needed by the original event sequence.
This function should not be used while the MIDI stream is being rendered, as it could delay the rendering.