Two Laptop Bag*
The moose likes Android and the fly likes Using AudioInputStream in Android Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Mobile » Android
Bookmark "Using AudioInputStream in Android" Watch "Using AudioInputStream in Android" New topic
Author

Using AudioInputStream in Android

Ayden Kim
Greenhorn

Joined: Feb 10, 2011
Posts: 5
Hi. I'm trying to porting a java project to Android.

But I found that Android does not support javax.sound.

Does anyone know the way to use AudioInputStream in Android?

Thank you.

-- Java code --
private AudioInputStream audioInputStream; -- Android does not have AudioInputStream class
private int[][] samplesContainer;
private AudioFormat audioFormat; -- Android has AudioFormat class, but I don't know it is exactly same as Java

//cached values
protected int sampleMax = 0;
protected int sampleMin = 0;
protected double biggestSample;

public AudioInfo(AudioInputStream aiStream) {
this.audioInputStream = aiStream;
this.audioFormat = audioInputStream.getFormat();
createSampleArrayCollection();
}
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Using AudioInputStream in Android
 
Similar Threads
Java Sound distorted/choppy/repeating on playback
Applet not working
Anyway to convert this to a method...?
Quit audio before application exits.
wav file