# please any body help me

• March 1st, 2013, 02:23 AM
lanya
how to calculate the bit rate and the bit depth of audio
8->
• March 1st, 2013, 02:31 AM
Zyrion
Re: please any body help me
Determine your limit, then determine the length of audio in seconds. Multiply the depth by the sampling rate and multiply that by the number of channels. Multiply the audio bit-rate by the length of the audio. Subtract the number from the maximum number. Then divide the number by the length of the audio. This gives you the bit-rate.
• March 1st, 2013, 02:40 AM
lanya
Re: please any body help me
thanks very much but i ask if there is a method in java to calculate it?
• March 1st, 2013, 03:10 AM
Zyrion
Re: please any body help me
None that I know of. You can try and create your own class to calculate it. I found a algorithm to calculate the time remaining if that's of any help.

Code java:

```//Common algorithm to calculate remaining time seconds_elapsed = current time - start time seconds_per_unit = seconds_elapsed / units_processed units_left = total_units - units_processed seconds_remaining = unit_left / seconds_per_unit```
• March 1st, 2013, 12:11 PM
lanya
Re: please any body help me
thank you very very much for your help