20 Jun '13 - 10:45 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Reply  |  Print  
Author Topic: BASS_ASIO_ChannelGetLevel() return 0  (Read 264 times)
wrgrant
Posts: 2


« on: 2 May '12 - 22:50 »
Reply with quoteQuote

Hi,

I am having an issue in my ASIO player app where BASS_ASIO_ChannelGetLevel() returns 0 with no errors thrown.

My channel topology is StreamCreateFile > Mixer > Asio Channel. And is implemented as a class so each physical ASIO channel has it's own mixer stream and decode stream.


I am trying to implement a VU meter so I need to get the level. But since I'm using decode streams, I believe the only place I can get the level is at ASIO output. I implemented the following simple code in a timer

TimerJob(){

float fLevel=BASS_ASIO_ChannelGetLevel(0, mAsioChanNum);
int eAsio=BASS_ASIO_ErrorGetCode();
int eBass=BASS_ErrorGetCode();

}

debug result is always:
fLevel=0
eAsio=0
eBass=0

I know the channel is processing correctly because I can hear the output Smiley

What am I missing? And/or where else can I check for errors?


Thanks so much,
Will
Logged
Ian @ un4seen
Administrator
Posts: 15366


« Reply #1 on: 3 May '12 - 16:56 »
Reply with quoteQuote

That sounds very similar to what another user reported with their device. In their case it turned out to be caused by the ASIO driver using a single buffer (rather than the usual 2), and BASSASIO was updated to support that. What version are you currently using? BASS_ASIO_GetVersion can be used to confirm what version is being loaded. If it isn't the latest, please give that a try and see if it helps.
Logged
wrgrant
Posts: 2


« Reply #2 on: 3 May '12 - 17:14 »
Reply with quoteQuote

The reported version is 0x1020000 which should be the latest.

Thank you for the link to that other post! I'm sorry to admit I didn't find that one before -- I even used a google search on the un4seen.com domain!..

I did a test to see whether the same behavior would be seen with a different device and behold, the level is reported correctly!

In summary:
ASIO4All v. 2.11 Beta 1 works fine  Smiley
Dante Virtual Soundcard Version 3.0.2 still does not work Sad
Logged
Ian @ un4seen
Administrator
Posts: 15366


« Reply #3 on: 3 May '12 - 17:26 »
Reply with quoteQuote

OK, I will send you a debug version to find out what's happening with that device.
Logged
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.18 | SMF © 2013, Simple Machines