The maximum percentage of CPU time that a MIDI stream can use.
BASS_ChannelSetAttribute( HSTREAM handle, BASS_ATTRIB_MIDI_CPU, float limit );
|handle||The MIDI stream handle.|
|limit||The CPU usage limit... 0 to 100, 0 = no limit.|
When the CPU usage is limited, the stream's samples are loaded asynchronously so that any loading delays (eg. due to slow disk) do not hold up the stream for too long. If a sample cannot be loaded in time, then it will be silenced until it is available and the stream will continue playing other samples as normal in the meantime. This does not affect sample loading via BASS_MIDI_StreamLoadSamples, which always operates synchronously.
By default, a MIDI stream will have no CPU limit.