Re: [android-developers] Re: recording volume indicator

2010-03-19 Thread Martin Obreshkov
Thanks it worked fine On Thu, Mar 18, 2010 at 10:13 PM, BobG wrote: > I humbly suggest an 8 segment tower... assuming 8 bit audio, calc the > avg level of 'a bunch' of samples (a frames worth? 30ms at 8 samps per > ms is 240 samps for example), Set a bar in the level indicator for > each bit tha

[android-developers] Re: recording volume indicator

2010-03-18 Thread BobG
I humbly suggest an 8 segment tower... assuming 8 bit audio, calc the avg level of 'a bunch' of samples (a frames worth? 30ms at 8 samps per ms is 240 samps for example), Set a bar in the level indicator for each bit that is set... 6 db per bit 1 or 2 or 3 db per segment would be more sensitive

[android-developers] Re: recording volume indicator

2010-03-18 Thread Bob Kerns
The first thing to do would be to be clear about just why you want to do this. Do you want to show when clipping is happening? How much headroom you have before clipping? Whether there's sufficient audio input? Presence of noise? Just a pretty display to assure the user it's working and look cool?