BASS_ChannelGetLevel Problem...

Started by hedgehog,

hedgehog

Hi people!
i tried to get volue level on a channel using BASS_ChannelGetLevel, i had a look to the C++ example in the bottom of the help page:
DWORD level,left,right;
level=BASS_ChannelGetLevel(a_channel);
left=LOWORD(level); // the left level
right=HIWORD(level); // the right level
I translated it in delphi:
...
var level,left,right:DWORD;
begin
  level=BASS_ChannelGetLevel(a_channel);
  left=LO(level); // the left level
  right=HI(level); // the right level
...

but the right value is always 0 even if i'm sure the channel is in stereo mode. what's the matter???
thenx for replies Daniele

Ian @ un4seen

Did you try using LO/HIWORD? That's what the Delphi version of the CONTEST example is using :)

hedgehog