RMS meters

Jan Depner <[email protected]>
Newsgroups gmane.comp.audio.jamin.devel
Message-ID <1178761013.9862.8.camel@eviltwin>
On the subject of the time setting for rms_new - shouldn't that be based
on a number of samples instead of a fixed time?  Right now I'm testing
it with 1000 samples and it looks pretty good (0.022 seconds).  The way
I set it is in process_init I divide 1000 by the sample rate and use
that as the time value in the rms_new calls.  If we just set a time
value like 0.05 we'll be computing the RMS on 2205 samples when we're
running at 44100Hz and 4800 samples when we're running at 96000Hz.  Or
am I just confused ;-)  Also, if this is the correct way to do this,
should I make the value a preference?

Jan


-- 
Jan 'Evil Twin' Depner
http://myweb.cableone.net/eviltwin69

"Life should NOT be a journey to the grave with the intention of 
arriving safely in an attractive and well preserved body, but rather to 
skid in sideways, chardonnay in one hand, chocolate in the other, body 
thoroughly used up, totally worn out, and screaming 'WOO HOO, what a ride'"


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.