Hello!
I've noticed a weird regression in BASS Mix. I'm doing fade out effect on pause and then fade in on resume, and it worked perfectly so far with BASS Mix version 2.4.9.0, until recently I updated it.
The code I use is this:
BASS_MIXER_NODE nodes[2];
nodes[0].pos = 0;
nodes[0].value = 0;
nodes[1].pos = BASS_ChannelSeconds2Bytes(m_resampler, 0.2);
nodes[1].value = 1;
BASS_Mixer_ChannelSetSync(m_resampler, BASS_SYNC_MIXER_ENVELOPE | BASS_SYNC_ONETIME, 0, OnChannelResumed, this);
BASS_Mixer_ChannelSetEnvelope(m_resampler, BASS_MIXER_ENV_VOL, nodes, 2);
I've tested upgrading BASS Mix to both 2.4.9.8 and 2.4.9.9 versions (keeping the rest of libraries the same) and I get this unexpected behavior:
- on fade out for pause, I can notice how the right channel suddenly stops while the left channel fades out nicely as expected.
- after that, I cannot "resume" playback. Or actually, I do resume playback but volume is stuck at 0.
And these might be interesting data points while I tried to workaround the issue:
- if I force the volume back to 1 on resume (before the fade in envelope), the fade in effect works... but only on the left speaker, the right speaker is still mute for the rest of the playback session.
- if I force pan=right during the whole playback session (I just wanted to know how broken it was), I notice how playback abruptly switches to the left speaker during the fade in and fade out effects, and then back to the right speaker as I enforced.
As mentioned before, if I go back to version 2.4.9.0 everything works great again.
I hope this info helps you fix the bug. If you need more info, I'm more than happy to help resolving it.