Author Topic: get remaining delay of mixer track  (Read 366 times)

tongub

  • Posts: 102
get remaining delay of mixer track
« on: 19 Sep '21 - 15:15 »
Hi,

i am adding channels to a mixer with that function:

Code: [Select]
BASS_Mixer_StreamAddChannelEx(mixer, channel, 0, start, length);

later I would like to execute mixer lock and get the remaining delay (start variable). How can I do this?

(The remaining delay must be really exact as I use the function for beatmatching)

Ian @ un4seen

  • Administrator
  • Posts: 23924
Re: get remaining delay of mixer track
« Reply #1 on: 20 Sep '21 - 17:16 »
It isn't currently possible to get the remaining start delay, but here's an update for you to try:

   www.un4seen.com/stuff/bassmix.zip

It adds a BASS_POS_MIXER_DELAY option for use with BASS_Mixer_ChannelGetPosition to get the remaining start delay amount. Let me know how you get on with it.

tongub

  • Posts: 102
Re: get remaining delay of mixer track
« Reply #2 on: 20 Sep '21 - 20:16 »
Hi,

i tried

Code: [Select]
BASS_Mixer_ChannelGetPosition(id, BASS_POS_BYTE|BASS_POS_MIXER_DELAY);

and

Code: [Select]
BASS_Mixer_ChannelGetPosition(id, BASS_POS_MIXER_DELAY);

but it returns always 18446744073709551615

Ian @ un4seen

  • Administrator
  • Posts: 23924
Re: get remaining delay of mixer track
« Reply #3 on: 21 Sep '21 - 15:24 »
That looks like the call failed (18446744073709551615 unsigned = -1 signed). Please check the error code with BASS_ErrorGetCode, and also the BASSmix version with BASS_Mixer_GetVersion (it should be 0x02040a09).

tongub

  • Posts: 102
Re: get remaining delay of mixer track
« Reply #4 on: 22 Sep '21 - 17:33 »
Sorry, it was a mistake on my part. It really works great, thank you very much! It would be great if the function is included in the next release.

Ian @ un4seen

  • Administrator
  • Posts: 23924
Re: get remaining delay of mixer track
« Reply #5 on: 23 Sep '21 - 13:50 »
Good to hear it's working now. It will be included in the next release, or rather the current release as of today :) ... The BASSmix 2.4.11 release was actually planned for this past Monday but you posted your request just in time to have it added first.

tongub

  • Posts: 102
Re: get remaining delay of mixer track
« Reply #6 on: 25 Sep '21 - 10:29 »
Thank you so much  ;D