Author Topic: BASS_Mixer_ChannelRemove Question  (Read 612 times)


  • Posts: 39
BASS_Mixer_ChannelRemove Question
« on: 17 Jul '18 - 12:09 »
I'm using a mixer with some syncs and effects on the channels.

My question is:
After BASS_Mixer_ChannelRemove(), should I also do BASS_RemoveSync() and BASS_Streamfree() for all running handles and channels or does BASS_Mixer_ChannelRemove() clear everything automatically?

Ian @ un4seen

  • Administrator
  • Posts: 22741
Re: BASS_Mixer_ChannelRemove Question
« Reply #1 on: 17 Jul '18 - 14:13 »
Are you using BASS_ChannelSetSync or BASS_Mixer_ChannelSetSync to set the syncs. If the latter, they will be removed by BASS_Mixer_ChannelRemove, otherwise they won't (you will need to use BASS_ChannelRemoveSync to remove them). Regarding freeing the source, that will depend on whether you set the BASS_STREAM_AUTOFREE flag on it when adding it to the mixer, eg. when calling BASS_Mixer_StreamAddChannel. If you have set that flag then the source will be freed by BASS_Mixer_ChannelRemove, otherwise it won't.