how to calculate the bit rate and the bit depth of audio
Welcome to the Java Programming Forums
The professional, friendly Java community. 21,500 members and growing!
The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.
>> REGISTER NOW TO START POSTING
Members have full access to the forums. Advertisements are removed for registered users.
how to calculate the bit rate and the bit depth of audio
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.
thanks very much but i ask if there is a method in java to calculate it?
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.
//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
thank you very very much for your help