FileDocCategorySizeDatePackage
AndroidSequence.javaAPI DocAndroid 1.5 API1686Wed May 06 22:41:02 BST 2009com.android.internal.sound.midi

AndroidSequence

public class AndroidSequence extends Sequence
Implements a MIDI Sequence for Android. Its set of tracks etc. will always be empty (at least we don't care about the contents). Instead, we store the URL to the original MIDI 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 AndroidSequence(URL url)
Creates a new AndroidSequence.

param
url The URL that points to the MIDI data.
throws
InvalidMidiDataException If the MIDI data is invalid (which we actually don't check at all).

        super(0.0f, 1);
        
        this.url = url;
    
Methods Summary
java.net.URLgetURL()
Returns the URL pointing to the MIDI data.

return
The URL.

        return url;