Author Topic: Decoding Mixer delay question.  (Read 398 times)

AndyMK

  • Posts: 209
Decoding Mixer delay question.
« on: 14 Jun '24 - 15:39 »
Hi, in the mixer docs i came across this:

Quote
If the mixer output is being played, there will be some delay in the effect of adding/removing source channels or changing their attributes being heard, due to buffering. This latency can be reduced via the BASS_ATTRIB_BUFFER attribute. The playback buffer can be flushed by calling BASS_ChannelPlay (restart = TRUE) or BASS_ChannelSetPosition (pos = 0). That can also be done to restart a mixer that has ended.

Does this apply to a decoding mixer?

Chris

  • Posts: 2210
Re: Decoding Mixer delay question.
« Reply #1 on: 14 Jun '24 - 16:12 »
 BASS_ATTRIB_BUFFER settings on the streams with BASS_STREAM_DECODEwill  have no effect (no playback buffers involved)

Ian @ un4seen

  • Administrator
  • Posts: 26015
Re: Decoding Mixer delay question.
« Reply #2 on: 14 Jun '24 - 17:09 »
Does this apply to a decoding mixer?

The mixer itself won't introduce a delay but buffering of its output would. The quoted documentation relates to BASS playback and how to adjust its buffering, but other playback systems (eg. ASIO) will also have buffering that would be adjusted in different ways. So a delay in this case will depend on what you're doing with the mixer output.

AndyMK

  • Posts: 209
Re: Decoding Mixer delay question.
« Reply #3 on: 15 Jun '24 - 05:48 »
Thanks