This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Android and the fly likes How to calculate FrameLength without using AudioSystem? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Mobile » Android
Bookmark "How to calculate FrameLength without using AudioSystem?" Watch "How to calculate FrameLength without using AudioSystem?" New topic
Author

How to calculate FrameLength without using AudioSystem?

Ayden Kim
Greenhorn

Joined: Feb 10, 2011
Posts: 5
I'm porting Java project to Android.

As you know, the Android does not have javax.sound package.

I need to calculate frameLength.

My sound file size is 283KB. And frame size is 4 and frame rate is 44100 and sample size in bits is 16.

The frame length was 69632 when I used just pure Java.

Do you know any equation to get this?

Thank you.
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19655
    
  18

I'm sure Greg won't mind if I move this thread to our Android forum.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
Don't get me started about those stupid light bulbs.
 
subject: How to calculate FrameLength without using AudioSystem?
 
Similar Threads
image height&width needed
How to calculate size of a java object?
JInternalFrame minimised size
two questions
Swing layout appears different on 2 Computers with Same OS?