Author Topic: Playtime BASS_SYNC_END for mixed streams  (Read 101 times)

saga

  • Posts: 2777
Playtime BASS_SYNC_END for mixed streams
« on: 22 Nov '24 - 11:47 »
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

  • Administrator
  • Posts: 26172
Re: Playtime BASS_SYNC_END for mixed streams
« Reply #1 on: 22 Nov '24 - 16:07 »
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

  • Posts: 2777
Re: Playtime BASS_SYNC_END for mixed streams
« Reply #2 on: 25 Nov '24 - 15:27 »
Ah, I missed the "mixer source channels" section in the help, and thus this function. That does exactly what I need. :)