Playtime BASS_SYNC_END for mixed streams

Started by saga, 22 Nov '24 - 11:47

saga

As far as I can tell, BASS_SYNC_END can only be used as mixtime sync on channels that are fed into mixers, because they will always be decoding channels. Is there any way to know when the end of a channel that is fed into a mixer is effectively heard? If not, would it be possible to provide a new sync type for mixer channels that could provide this information? Something like BASS_ChannelSetSync(mixerHandle, BASS_SYNC_END, channelHandle, proc, user) maybe?

Ian @ un4seen

Are you playing the mixer with BASS, ie. calling BASS_ChannelPlay on it? If so, using BASS_Mixer_ChannelSetSync instead of BASS_ChannelSetSync to set the sync on the source should achieve what you want.

If you're using another output system to play the mixer, it should also be possible then with the latest BASSmix build. It expands the BASS_ATTRIB_MIXER_LATENCY setting to apply to syncs (set via BASS_Mixer_ChannelSetSync) so that they can be delayed until heard.

   www.un4seen.com/stuff/bassmix.zip

saga

Ah, I missed the "mixer source channels" section in the help, and thus this function. That does exactly what I need. :)