Author Topic: Trying to get level from mixer instead of chan  (Read 123 times)

scarboni

  • Posts: 43
Hello !

I have 9 channel that I funnel into one mixer, and i need the final level of each of them, but I am under the impression that doing BASS_Mixer_ChannelGetLevel for each channel may start to be heavy, as my program start to slow down when I do that.

It's a calculation that I need to do very frequently, each few millisecond (40 of 50) to update my vumeters.

Is there a way to get the level of a mixer instead ?

Thank you !

MB_SOFT

  • Posts: 402
Re: Trying to get level from mixer instead of chan
« Reply #1 on: 9 Apr '21 - 11:26 »
BASS_ChannelGetLevel(mixerhandle)

scarboni

  • Posts: 43
Re: Trying to get level from mixer instead of chan
« Reply #2 on: 9 Apr '21 - 15:25 »
Well, the documentation says that it works only for a channel, and not the final output of a mixer, and I tried without results, but maybe I'm missing something ?

I will give it another go

Ian @ un4seen

  • Administrator
  • Posts: 23553
Re: Trying to get level from mixer instead of chan
« Reply #3 on: 9 Apr '21 - 17:09 »
Please note that MB_SOFT wrote BASS_ChannelGetLevel rather than BASS_Mixer_ChannelGetLevel. The latter is only for mixer sources, but the former can be used on the mixer itself.

scarboni

  • Posts: 43
Re: Trying to get level from mixer instead of chan
« Reply #4 on: 10 Apr '21 - 13:34 »
Thank you, you are right, that does work ! I don't know why I did it wrong last time, but, anyway thank you :)