BASS_ATTRIB_MIXER_THREADS attribute
The number of threads to use for mixing.
BASS_ChannelSetAttribute(
HSTREAM handle,
BASS_ATTRIB_MIXER_THREADS,
float threads
);
Parameters
handle | The mixer stream handle.
|
threads | The number of threads... 1 (min) to 16 (max).
|
Remarks
The number of mixing threads determines how many source channels can be processed simultaneously by the mixer. If there are multiple CPU cores available then processing multiple sources simultaneously (if there are multiple sources) will generally mean that the final mix can be produced more quickly. When the BASS_MIXER_CHAN_LIMIT flag is set on a source, that source will always be processed alone first because it determines how much data may be processed from the other sources.
The default setting is 1. Changes take immediate effect.
Example
Set a mixer to use 2 threads.
BASS_ChannelSetAttribute(mixer, BASS_ATTRIB_MIXER_THREADS, 2);
See also
BASS_ChannelGetAttribute, BASS_ChannelSetAttribute