FileDocCategorySizeDatePackage
AndroidAudioInputStream.javaAPI DocAndroid 1.5 API1600Wed May 06 22:41:02 BST 2009com.android.internal.sound.sampled

AndroidAudioInputStream

public class AndroidAudioInputStream extends AudioInputStream
Implements an AudioInputStream for Android. Its internal InputStream is unused (at least we don't care about the contents). Instead, we store the URL to the original audio data in it, so we can feed it into the Android MediaPlayer.

Fields Summary
private URL
url
Holds the URL to the MIDI data.
Constructors Summary
public AndroidAudioInputStream(URL url)
Creates a new AndroidAudioInputStream.

param
url The URL that points to the audio data.

        super(null, new AudioFormat(0.0f, 0, 0, false, false), 0);
        
        this.url = url;
    
Methods Summary
java.net.URLgetURL()
Returns the URL pointing to the audio data.

return
The URL.

        return url;