File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Android and the fly likes How to calculate FrameLength without using AudioSystem? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Mobile » Android
Reply 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
Saloon Keeper

Joined: Oct 27, 2005
Posts: 18370

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


SCJP 1.4 - SCJP 6 - SCWCD 5
How To Ask Questions How To Answer Questions
 
 
subject: How to calculate FrameLength without using AudioSystem?
 
Threads others viewed
Swing layout appears different on 2 Computers with Same OS?
image height&width needed
two questions
How to calculate size of a java object?
JInternalFrame minimised size
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture