[Openal] Possible to get sample peak / sample range ?

aconstantin alex.constantin at yahoo.com
Thu Jun 26 07:20:53 PDT 2008


Hi all, 

I'm interested if there's a way to get the sample peak / sample range of a
loaded sample, since I'm trying to build graphical support for my audio app
(a VU-Meter, Spectrum Analyzer or a Vertical Bar Equalizer) 

But all these are linked to the instantaneous level of the audio signal... i
need those decibels, thus I would need the above mentioned properties,
since, to my knowledge, the dB conversion for 16-bit audio is:
  
     dbVal = 20 * log10((double) samplePeak / sampleRange); 


Any pointers ?

Alex.


-----
---using---
- VC# 2005
- Tao Framework 2.1.0
-- 
View this message in context: http://www.nabble.com/Possible-to-get-sample-peak---sample-range---tp18135082p18135082.html
Sent from the OpenAL - User mailing list archive at Nabble.com.



More information about the Openal mailing list