TStockAudioPlayer not responding to onlevel event

Please post bug reports, feature requests, or any question regarding the DELPHI AREA projects here.

TStockAudioPlayer not responding to onlevel event

Postby mtocon » February 9th, 2012, 3:59 pm

Hi, I have been confronted by adpcm files which are only 4 bit. They do not make the TStockAudioPlayer onlevel event activate when they are played. I am using an example like the simple wave audio player in the Delphi demos where the onlevel event increments the position of the progress bar. The files play just fine and are audible.
Is there a way to make the player more sensitive so that it will respond to the weaker files? Or is there a way to increment the progress bar without using the onlevel event?

Many thanks

Mick
mtocon
Member
Member
 
Posts: 2
Joined: February 8th, 2012, 6:55 pm

Re: TStockAudioPlayer not responding to onlevel event

Postby Kambiz » February 12th, 2012, 6:01 pm

Hi Mick,

Figuring audio level for 16 and 8 bits PCM format was very easy, it is way the other formats are not supported.
There is a function in waUtils that you can extend it for supporting other wave formats. I don't remember the exact name of the function, but by looking the source, it would be easy to find it out.
Kambiz
User avatar
Kambiz
Administrator
Administrator
 
Posts: 2429
Joined: March 7th, 2003, 7:10 pm

Re: TStockAudioPlayer not responding to onlevel event

Postby mtocon » February 13th, 2012, 12:01 pm

Thanks Kambiz, when you say easy, I think you mean with your level of knowledge and not with mine. It still looks like a massive minefield of despair to me, could you give me a couple of pointers?

Mick
mtocon
Member
Member
 
Posts: 2
Joined: February 8th, 2012, 6:55 pm

Re: TStockAudioPlayer not responding to onlevel event

Postby Kambiz » February 15th, 2012, 10:32 am

I meant finding audio level for 8 and 16 bit PCM is easy. I have no idea about the 4 bit format.
Kambiz
User avatar
Kambiz
Administrator
Administrator
 
Posts: 2429
Joined: March 7th, 2003, 7:10 pm


Return to DELPHI AREA Projects

Who is online

Users browsing this forum: No registered users and 1 guest

cron