I've noticed that on occasions, particularly the first time while running the application, BASS_Mixer_StreamAddChannelEx can take a long time to return.
The scenario is as follows: a decoding mixer stream is created and passed to an encoder. A separate thread callsBASS_ChannelGetData in a while loop, until the mixer stream is freed.
BASS_Mixer_StreamAddChannelEx has taken upto a minute to return any kind of value - it just hangs there for a while and returns sometime later. Most of the time this is instant.
What can cause this?