public final class com.sun.media.sound.JavaSoundAudioClip implements java.applet.AudioClip, javax.sound.midi.MetaEventListener, javax.sound.sampled.LineListener
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: com.sun.media.sound.JavaSoundAudioClip
super_class: java.lang.Object
{
private static final boolean DEBUG;
descriptor: Z
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 0
private static final int BUFFER_SIZE;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 16384
private long lastPlayCall;
descriptor: J
flags: (0x0002) ACC_PRIVATE
private static final int MINIMUM_PLAY_DELAY;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 30
private byte[] loadedAudio;
descriptor: [B
flags: (0x0002) ACC_PRIVATE
private int loadedAudioByteLength;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private javax.sound.sampled.AudioFormat loadedAudioFormat;
descriptor: Ljavax/sound/sampled/AudioFormat;
flags: (0x0002) ACC_PRIVATE
private com.sun.media.sound.AutoClosingClip clip;
descriptor: Lcom/sun/media/sound/AutoClosingClip;
flags: (0x0002) ACC_PRIVATE
private boolean clipLooping;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private com.sun.media.sound.DataPusher datapusher;
descriptor: Lcom/sun/media/sound/DataPusher;
flags: (0x0002) ACC_PRIVATE
private javax.sound.midi.Sequencer sequencer;
descriptor: Ljavax/sound/midi/Sequencer;
flags: (0x0002) ACC_PRIVATE
private javax.sound.midi.Sequence sequence;
descriptor: Ljavax/sound/midi/Sequence;
flags: (0x0002) ACC_PRIVATE
private boolean sequencerloop;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private volatile boolean success;
descriptor: Z
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
private static final long CLIP_THRESHOLD;
descriptor: J
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 1048576
private static final int STREAM_BUFFER_SIZE;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 1024
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
lconst_0
putfield com.sun.media.sound.JavaSoundAudioClip.lastPlayCall:J
2: aload 0
aconst_null
putfield com.sun.media.sound.JavaSoundAudioClip.loadedAudio:[B
3: aload 0
iconst_0
putfield com.sun.media.sound.JavaSoundAudioClip.loadedAudioByteLength:I
4: aload 0
aconst_null
putfield com.sun.media.sound.JavaSoundAudioClip.loadedAudioFormat:Ljavax/sound/sampled/AudioFormat;
5: aload 0
aconst_null
putfield com.sun.media.sound.JavaSoundAudioClip.clip:Lcom/sun/media/sound/AutoClosingClip;
6: aload 0
iconst_0
putfield com.sun.media.sound.JavaSoundAudioClip.clipLooping:Z
7: aload 0
aconst_null
putfield com.sun.media.sound.JavaSoundAudioClip.datapusher:Lcom/sun/media/sound/DataPusher;
8: aload 0
aconst_null
putfield com.sun.media.sound.JavaSoundAudioClip.sequencer:Ljavax/sound/midi/Sequencer;
9: aload 0
aconst_null
putfield com.sun.media.sound.JavaSoundAudioClip.sequence:Ljavax/sound/midi/Sequence;
10: aload 0
iconst_0
putfield com.sun.media.sound.JavaSoundAudioClip.sequencerloop:Z
11: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lcom/sun/media/sound/JavaSoundAudioClip;
public static com.sun.media.sound.JavaSoundAudioClip create(java.net.URLConnection);
descriptor: (Ljava/net/URLConnection;)Lcom/sun/media/sound/JavaSoundAudioClip;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: new com.sun.media.sound.JavaSoundAudioClip
dup
invokespecial com.sun.media.sound.JavaSoundAudioClip.<init>:()V
astore 1
start local 1 1: aload 1
aload 0
invokevirtual java.net.URLConnection.getInputStream:()Ljava/io/InputStream;
invokevirtual com.sun.media.sound.JavaSoundAudioClip.init:(Ljava/io/InputStream;)V
2: goto 4
StackMap locals: java.net.URLConnection com.sun.media.sound.JavaSoundAudioClip
StackMap stack: java.lang.Exception
3: pop
4: StackMap locals:
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 uc Ljava/net/URLConnection;
1 5 1 clip Lcom/sun/media/sound/JavaSoundAudioClip;
Exception table:
from to target type
1 2 3 Class java.lang.Exception
MethodParameters:
Name Flags
uc final
public static com.sun.media.sound.JavaSoundAudioClip create(java.net.URL);
descriptor: (Ljava/net/URL;)Lcom/sun/media/sound/JavaSoundAudioClip;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: new com.sun.media.sound.JavaSoundAudioClip
dup
invokespecial com.sun.media.sound.JavaSoundAudioClip.<init>:()V
astore 1
start local 1 1: aload 1
aload 0
invokevirtual java.net.URL.openStream:()Ljava/io/InputStream;
invokevirtual com.sun.media.sound.JavaSoundAudioClip.init:(Ljava/io/InputStream;)V
2: goto 4
StackMap locals: java.net.URL com.sun.media.sound.JavaSoundAudioClip
StackMap stack: java.lang.Exception
3: pop
4: StackMap locals:
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 url Ljava/net/URL;
1 5 1 clip Lcom/sun/media/sound/JavaSoundAudioClip;
Exception table:
from to target type
1 2 3 Class java.lang.Exception
MethodParameters:
Name Flags
url final
private void init(java.io.InputStream);
descriptor: (Ljava/io/InputStream;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: new java.io.BufferedInputStream
dup
aload 1
sipush 1024
invokespecial java.io.BufferedInputStream.<init>:(Ljava/io/InputStream;I)V
astore 2
start local 2 1: aload 2
sipush 1024
invokevirtual java.io.BufferedInputStream.mark:(I)V
2: aload 2
invokestatic javax.sound.sampled.AudioSystem.getAudioInputStream:(Ljava/io/InputStream;)Ljavax/sound/sampled/AudioInputStream;
astore 3
start local 3 3: aload 0
aload 0
aload 3
invokevirtual com.sun.media.sound.JavaSoundAudioClip.loadAudioData:(Ljavax/sound/sampled/AudioInputStream;)Z
putfield com.sun.media.sound.JavaSoundAudioClip.success:Z
4: aload 0
getfield com.sun.media.sound.JavaSoundAudioClip.success:Z
ifeq 17
5: aload 0
iconst_0
putfield com.sun.media.sound.JavaSoundAudioClip.success:Z
6: aload 0
getfield com.sun.media.sound.JavaSoundAudioClip.loadedAudioByteLength:I
i2l
ldc 1048576
lcmp
ifge 8
7: aload 0
aload 0
invokevirtual com.sun.media.sound.JavaSoundAudioClip.createClip:()Z
putfield com.sun.media.sound.JavaSoundAudioClip.success:Z
8: StackMap locals: java.io.BufferedInputStream javax.sound.sampled.AudioInputStream
StackMap stack:
aload 0
getfield com.sun.media.sound.JavaSoundAudioClip.success:Z
ifne 17
9: aload 0
aload 0
invokevirtual com.sun.media.sound.JavaSoundAudioClip.createSourceDataLine:()Z
putfield com.sun.media.sound.JavaSoundAudioClip.success:Z
end local 3 10: goto 17
StackMap locals: com.sun.media.sound.JavaSoundAudioClip java.io.InputStream java.io.BufferedInputStream
StackMap stack: javax.sound.sampled.UnsupportedAudioFileException
11: pop
12: aload 2
invokestatic javax.sound.midi.MidiSystem.getMidiFileFormat:(Ljava/io/InputStream;)Ljavax/sound/midi/MidiFileFormat;
pop
13: aload 0
aload 0
aload 2
invokevirtual com.sun.media.sound.JavaSoundAudioClip.createSequencer:(Ljava/io/BufferedInputStream;)Z
putfield com.sun.media.sound.JavaSoundAudioClip.success:Z
14: goto 17
StackMap locals:
StackMap stack: javax.sound.midi.InvalidMidiDataException
15: pop
16: aload 0
iconst_0
putfield com.sun.media.sound.JavaSoundAudioClip.success:Z
17: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 this Lcom/sun/media/sound/JavaSoundAudioClip;
0 18 1 in Ljava/io/InputStream;
1 18 2 bis Ljava/io/BufferedInputStream;
3 10 3 as Ljavax/sound/sampled/AudioInputStream;
Exception table:
from to target type
2 10 11 Class javax.sound.sampled.UnsupportedAudioFileException
12 14 15 Class javax.sound.midi.InvalidMidiDataException
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
in
public synchronized void play();
descriptor: ()V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield com.sun.media.sound.JavaSoundAudioClip.success:Z
ifne 2
1: return
2: StackMap locals:
StackMap stack:
aload 0
iconst_0
invokevirtual com.sun.media.sound.JavaSoundAudioClip.startImpl:(Z)V
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/sun/media/sound/JavaSoundAudioClip;
public synchronized void loop();
descriptor: ()V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield com.sun.media.sound.JavaSoundAudioClip.success:Z
ifne 2
1: return
2: StackMap locals:
StackMap stack:
aload 0
iconst_1
invokevirtual com.sun.media.sound.JavaSoundAudioClip.startImpl:(Z)V
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/sun/media/sound/JavaSoundAudioClip;
private synchronized void startImpl(boolean);
descriptor: (Z)V
flags: (0x0022) ACC_PRIVATE, ACC_SYNCHRONIZED
Code:
stack=5, locals=7, args_size=2
start local 0 start local 1 0: invokestatic java.lang.System.currentTimeMillis:()J
lstore 2
start local 2 1: lload 2
aload 0
getfield com.sun.media.sound.JavaSoundAudioClip.lastPlayCall:J
lsub
lstore 4
start local 4 2: lload 4
ldc 30
lcmp
ifge 4
3: return
4: StackMap locals: long long
StackMap stack:
aload 0
lload 2
putfield com.sun.media.sound.JavaSoundAudioClip.lastPlayCall:J
5: aload 0
getfield com.sun.media.sound.JavaSoundAudioClip.clip:Lcom/sun/media/sound/AutoClosingClip;
ifnull 27
6: aload 0
getfield com.sun.media.sound.JavaSoundAudioClip.clip:Lcom/sun/media/sound/AutoClosingClip;
iconst_0
invokeinterface com.sun.media.sound.AutoClosingClip.setAutoClosing:(Z)V
7: aload 0
getfield com.sun.media.sound.JavaSoundAudioClip.clip:Lcom/sun/media/sound/AutoClosingClip;
invokeinterface com.sun.media.sound.AutoClosingClip.isOpen:()Z
ifne 12
8: aload 0
getfield com.sun.media.sound.JavaSoundAudioClip.clip:Lcom/sun/media/sound/AutoClosingClip;
aload 0
getfield com.sun.media.sound.JavaSoundAudioClip.loadedAudioFormat:Ljavax/sound/sampled/AudioFormat;
aload 0
getfield com.sun.media.sound.JavaSoundAudioClip.loadedAudio:[B
iconst_0
9: aload 0
getfield com.sun.media.sound.JavaSoundAudioClip.loadedAudioByteLength:I
10: invokeinterface com.sun.media.sound.AutoClosingClip.open:(Ljavax/sound/sampled/AudioFormat;[BII)V
11: goto 15
12: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.media.sound.JavaSoundAudioClip.clip:Lcom/sun/media/sound/AutoClosingClip;
invokeinterface com.sun.media.sound.AutoClosingClip.flush:()V
13: iload 1
aload 0
getfield com.sun.media.sound.JavaSoundAudioClip.clipLooping:Z
if_icmpeq 15
14: aload 0
getfield com.sun.media.sound.JavaSoundAudioClip.clip:Lcom/sun/media/sound/AutoClosingClip;
invokeinterface com.sun.media.sound.AutoClosingClip.stop:()V
15: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.media.sound.JavaSoundAudioClip.clip:Lcom/sun/media/sound/AutoClosingClip;
iconst_0
invokeinterface com.sun.media.sound.AutoClosingClip.setFramePosition:(I)V
16: iload 1
ifeq 19
17: aload 0
getfield com.sun.media.sound.JavaSoundAudioClip.clip:Lcom/sun/media/sound/AutoClosingClip;
iconst_m1
invokeinterface com.sun.media.sound.AutoClosingClip.loop:(I)V
18: goto 20
19: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.media.sound.JavaSoundAudioClip.clip:Lcom/sun/media/sound/AutoClosingClip;
invokeinterface com.sun.media.sound.AutoClosingClip.start:()V
20: StackMap locals:
StackMap stack:
aload 0
iload 1
putfield com.sun.media.sound.JavaSoundAudioClip.clipLooping:Z
21: goto 25
StackMap locals:
StackMap stack: java.lang.Throwable
22: astore 6
23: aload 0
getfield com.sun.media.sound.JavaSoundAudioClip.clip:Lcom/sun/media/sound/AutoClosingClip;
iconst_1
invokeinterface com.sun.media.sound.AutoClosingClip.setAutoClosing:(Z)V
24: aload 6
athrow
25: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.media.sound.JavaSoundAudioClip.clip:Lcom/sun/media/sound/AutoClosingClip;
iconst_1
invokeinterface com.sun.media.sound.AutoClosingClip.setAutoClosing:(Z)V
26: goto 46
StackMap locals:
StackMap stack:
27: aload 0
getfield com.sun.media.sound.JavaSoundAudioClip.datapusher:Lcom/sun/media/sound/DataPusher;
ifnull 30
28: aload 0
getfield com.sun.media.sound.JavaSoundAudioClip.datapusher:Lcom/sun/media/sound/DataPusher;
iload 1
invokevirtual com.sun.media.sound.DataPusher.start:(Z)V
29: goto 46
StackMap locals:
StackMap stack:
30: aload 0
getfield com.sun.media.sound.JavaSoundAudioClip.sequencer:Ljavax/sound/midi/Sequencer;
ifnull 46
31: aload 0
iload 1
putfield com.sun.media.sound.JavaSoundAudioClip.sequencerloop:Z
32: aload 0
getfield com.sun.media.sound.JavaSoundAudioClip.sequencer:Ljavax/sound/midi/Sequencer;
invokeinterface javax.sound.midi.Sequencer.isRunning:()Z
ifeq 34
33: aload 0
getfield com.sun.media.sound.JavaSoundAudioClip.sequencer:Ljavax/sound/midi/Sequencer;
lconst_0
invokeinterface javax.sound.midi.Sequencer.setMicrosecondPosition:(J)V
34: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.media.sound.JavaSoundAudioClip.sequencer:Ljavax/sound/midi/Sequencer;
invokeinterface javax.sound.midi.Sequencer.isOpen:()Z
ifne 40
35: aload 0
getfield com.sun.media.sound.JavaSoundAudioClip.sequencer:Ljavax/sound/midi/Sequencer;
invokeinterface javax.sound.midi.Sequencer.open:()V
36: aload 0
getfield com.sun.media.sound.JavaSoundAudioClip.sequencer:Ljavax/sound/midi/Sequencer;
aload 0
getfield com.sun.media.sound.JavaSoundAudioClip.sequence:Ljavax/sound/midi/Sequence;
invokeinterface javax.sound.midi.Sequencer.setSequence:(Ljavax/sound/midi/Sequence;)V
37: goto 40
StackMap locals:
StackMap stack: javax.sound.midi.InvalidMidiDataException
38: astore 6
goto 40
39: StackMap locals:
StackMap stack: javax.sound.midi.MidiUnavailableException
astore 6
40: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.media.sound.JavaSoundAudioClip.sequencer:Ljavax/sound/midi/Sequencer;
aload 0
invokeinterface javax.sound.midi.Sequencer.addMetaEventListener:(Ljavax/sound/midi/MetaEventListener;)Z
pop
41: aload 0
getfield com.sun.media.sound.JavaSoundAudioClip.sequencer:Ljavax/sound/midi/Sequencer;
invokeinterface javax.sound.midi.Sequencer.start:()V
42: goto 46
StackMap locals:
StackMap stack: java.lang.Exception
43: astore 6
44: goto 46
StackMap locals:
StackMap stack: java.lang.Exception
45: astore 6
46: StackMap locals:
StackMap stack:
return
end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 47 0 this Lcom/sun/media/sound/JavaSoundAudioClip;
0 47 1 loop Z
1 47 2 currentTime J
2 47 4 diff J
Exception table:
from to target type
7 22 22 any
35 37 38 Class javax.sound.midi.InvalidMidiDataException
35 37 39 Class javax.sound.midi.MidiUnavailableException
41 42 43 Class java.lang.Exception
5 44 45 Class java.lang.Exception
MethodParameters:
Name Flags
loop
public synchronized void stop();
descriptor: ()V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
getfield com.sun.media.sound.JavaSoundAudioClip.success:Z
ifne 2
1: return
2: StackMap locals:
StackMap stack:
aload 0
lconst_0
putfield com.sun.media.sound.JavaSoundAudioClip.lastPlayCall:J
3: aload 0
getfield com.sun.media.sound.JavaSoundAudioClip.clip:Lcom/sun/media/sound/AutoClosingClip;
ifnull 11
4: aload 0
getfield com.sun.media.sound.JavaSoundAudioClip.clip:Lcom/sun/media/sound/AutoClosingClip;
invokeinterface com.sun.media.sound.AutoClosingClip.flush:()V
5: goto 7
StackMap locals:
StackMap stack: java.lang.Exception
6: astore 1
7: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.media.sound.JavaSoundAudioClip.clip:Lcom/sun/media/sound/AutoClosingClip;
invokeinterface com.sun.media.sound.AutoClosingClip.stop:()V
8: goto 23
StackMap locals:
StackMap stack: java.lang.Exception
9: astore 1
10: goto 23
StackMap locals:
StackMap stack:
11: aload 0
getfield com.sun.media.sound.JavaSoundAudioClip.datapusher:Lcom/sun/media/sound/DataPusher;
ifnull 14
12: aload 0
getfield com.sun.media.sound.JavaSoundAudioClip.datapusher:Lcom/sun/media/sound/DataPusher;
invokevirtual com.sun.media.sound.DataPusher.stop:()V
13: goto 23
StackMap locals:
StackMap stack:
14: aload 0
getfield com.sun.media.sound.JavaSoundAudioClip.sequencer:Ljavax/sound/midi/Sequencer;
ifnull 23
15: aload 0
iconst_0
putfield com.sun.media.sound.JavaSoundAudioClip.sequencerloop:Z
16: aload 0
getfield com.sun.media.sound.JavaSoundAudioClip.sequencer:Ljavax/sound/midi/Sequencer;
aload 0
invokeinterface javax.sound.midi.Sequencer.removeMetaEventListener:(Ljavax/sound/midi/MetaEventListener;)V
17: aload 0
getfield com.sun.media.sound.JavaSoundAudioClip.sequencer:Ljavax/sound/midi/Sequencer;
invokeinterface javax.sound.midi.Sequencer.stop:()V
18: goto 20
StackMap locals:
StackMap stack: java.lang.Exception
19: astore 1
20: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.media.sound.JavaSoundAudioClip.sequencer:Ljavax/sound/midi/Sequencer;
invokeinterface javax.sound.midi.Sequencer.close:()V
21: goto 23
StackMap locals:
StackMap stack: java.lang.Exception
22: astore 1
23: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 24 0 this Lcom/sun/media/sound/JavaSoundAudioClip;
Exception table:
from to target type
4 5 6 Class java.lang.Exception
7 8 9 Class java.lang.Exception
15 18 19 Class java.lang.Exception
20 21 22 Class java.lang.Exception
public synchronized void update(javax.sound.sampled.LineEvent);
descriptor: (Ljavax/sound/sampled/LineEvent;)V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=0, locals=2, args_size=2
start local 0 start local 1 0: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/media/sound/JavaSoundAudioClip;
0 1 1 event Ljavax/sound/sampled/LineEvent;
MethodParameters:
Name Flags
event
public synchronized void meta(javax.sound.midi.MetaMessage);
descriptor: (Ljavax/sound/midi/MetaMessage;)V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual javax.sound.midi.MetaMessage.getType:()I
bipush 47
if_icmpne 6
1: aload 0
getfield com.sun.media.sound.JavaSoundAudioClip.sequencerloop:Z
ifeq 5
2: aload 0
getfield com.sun.media.sound.JavaSoundAudioClip.sequencer:Ljavax/sound/midi/Sequencer;
lconst_0
invokeinterface javax.sound.midi.Sequencer.setMicrosecondPosition:(J)V
3: aload 0
invokevirtual com.sun.media.sound.JavaSoundAudioClip.loop:()V
4: goto 6
5: StackMap locals:
StackMap stack:
aload 0
invokevirtual com.sun.media.sound.JavaSoundAudioClip.stop:()V
6: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lcom/sun/media/sound/JavaSoundAudioClip;
0 7 1 message Ljavax/sound/midi/MetaMessage;
MethodParameters:
Name Flags
message
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/media/sound/JavaSoundAudioClip;
protected void finalize();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.sun.media.sound.JavaSoundAudioClip.clip:Lcom/sun/media/sound/AutoClosingClip;
ifnull 2
1: aload 0
getfield com.sun.media.sound.JavaSoundAudioClip.clip:Lcom/sun/media/sound/AutoClosingClip;
invokeinterface com.sun.media.sound.AutoClosingClip.close:()V
2: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.media.sound.JavaSoundAudioClip.datapusher:Lcom/sun/media/sound/DataPusher;
ifnull 4
3: aload 0
getfield com.sun.media.sound.JavaSoundAudioClip.datapusher:Lcom/sun/media/sound/DataPusher;
invokevirtual com.sun.media.sound.DataPusher.close:()V
4: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.media.sound.JavaSoundAudioClip.sequencer:Ljavax/sound/midi/Sequencer;
ifnull 6
5: aload 0
getfield com.sun.media.sound.JavaSoundAudioClip.sequencer:Ljavax/sound/midi/Sequencer;
invokeinterface javax.sound.midi.Sequencer.close:()V
6: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lcom/sun/media/sound/JavaSoundAudioClip;
private boolean loadAudioData(javax.sound.sampled.AudioInputStream);
descriptor: (Ljavax/sound/sampled/AudioInputStream;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=7, args_size=2
start local 0 start local 1 0: aload 1
invokestatic com.sun.media.sound.Toolkit.getPCMConvertedAudioInputStream:(Ljavax/sound/sampled/AudioInputStream;)Ljavax/sound/sampled/AudioInputStream;
astore 1
1: aload 1
ifnonnull 3
2: iconst_0
ireturn
3: StackMap locals:
StackMap stack:
aload 0
aload 1
invokevirtual javax.sound.sampled.AudioInputStream.getFormat:()Ljavax/sound/sampled/AudioFormat;
putfield com.sun.media.sound.JavaSoundAudioClip.loadedAudioFormat:Ljavax/sound/sampled/AudioFormat;
4: aload 1
invokevirtual javax.sound.sampled.AudioInputStream.getFrameLength:()J
lstore 2
start local 2 5: aload 0
getfield com.sun.media.sound.JavaSoundAudioClip.loadedAudioFormat:Ljavax/sound/sampled/AudioFormat;
invokevirtual javax.sound.sampled.AudioFormat.getFrameSize:()I
istore 4
start local 4 6: ldc -1
lstore 5
start local 5 7: lload 2
ldc -1
lcmp
ifeq 12
8: lload 2
lconst_0
lcmp
ifle 12
9: iload 4
iconst_m1
if_icmpeq 12
10: iload 4
ifle 12
11: lload 2
iload 4
i2l
lmul
lstore 5
12: StackMap locals: long int long
StackMap stack:
lload 5
ldc -1
lcmp
ifeq 15
13: aload 0
aload 1
lload 5
invokevirtual com.sun.media.sound.JavaSoundAudioClip.readStream:(Ljavax/sound/sampled/AudioInputStream;J)V
14: goto 16
15: StackMap locals:
StackMap stack:
aload 0
aload 1
invokevirtual com.sun.media.sound.JavaSoundAudioClip.readStream:(Ljavax/sound/sampled/AudioInputStream;)V
16: StackMap locals:
StackMap stack:
iconst_1
ireturn
end local 5 end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Lcom/sun/media/sound/JavaSoundAudioClip;
0 17 1 as Ljavax/sound/sampled/AudioInputStream;
5 17 2 frameLen J
6 17 4 frameSize I
7 17 5 byteLen J
Exceptions:
throws java.io.IOException, javax.sound.sampled.UnsupportedAudioFileException
MethodParameters:
Name Flags
as
private void readStream(javax.sound.sampled.AudioInputStream, long);
descriptor: (Ljavax/sound/sampled/AudioInputStream;J)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=6, args_size=3
start local 0 start local 1 start local 2 0: lload 2
ldc 2147483647
lcmp
ifle 3
1: ldc 2147483647
istore 4
start local 4 2: goto 4
end local 4 3: StackMap locals:
StackMap stack:
lload 2
l2i
istore 4
start local 4 4: StackMap locals: int
StackMap stack:
aload 0
iload 4
newarray 8
putfield com.sun.media.sound.JavaSoundAudioClip.loadedAudio:[B
5: aload 0
iconst_0
putfield com.sun.media.sound.JavaSoundAudioClip.loadedAudioByteLength:I
6: StackMap locals:
StackMap stack:
aload 1
aload 0
getfield com.sun.media.sound.JavaSoundAudioClip.loadedAudio:[B
aload 0
getfield com.sun.media.sound.JavaSoundAudioClip.loadedAudioByteLength:I
iload 4
aload 0
getfield com.sun.media.sound.JavaSoundAudioClip.loadedAudioByteLength:I
isub
invokevirtual javax.sound.sampled.AudioInputStream.read:([BII)I
istore 5
start local 5 7: iload 5
ifgt 10
8: aload 1
invokevirtual javax.sound.sampled.AudioInputStream.close:()V
9: goto 12
10: StackMap locals: int
StackMap stack:
aload 0
dup
getfield com.sun.media.sound.JavaSoundAudioClip.loadedAudioByteLength:I
iload 5
iadd
putfield com.sun.media.sound.JavaSoundAudioClip.loadedAudioByteLength:I
end local 5 11: goto 6
12: StackMap locals:
StackMap stack:
return
end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lcom/sun/media/sound/JavaSoundAudioClip;
0 13 1 as Ljavax/sound/sampled/AudioInputStream;
0 13 2 byteLen J
2 3 4 intLen I
4 13 4 intLen I
7 11 5 bytesRead I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
as
byteLen
private void readStream(javax.sound.sampled.AudioInputStream);
descriptor: (Ljavax/sound/sampled/AudioInputStream;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=6, args_size=2
start local 0 start local 1 0: new com.sun.media.sound.JavaSoundAudioClip$DirectBAOS
dup
invokespecial com.sun.media.sound.JavaSoundAudioClip$DirectBAOS.<init>:()V
astore 2
start local 2 1: sipush 16384
newarray 8
astore 3
start local 3 2: iconst_0
istore 4
start local 4 3: iconst_0
istore 5
start local 5 4: StackMap locals: com.sun.media.sound.JavaSoundAudioClip javax.sound.sampled.AudioInputStream com.sun.media.sound.JavaSoundAudioClip$DirectBAOS byte[] int int
StackMap stack:
aload 1
aload 3
iconst_0
aload 3
arraylength
invokevirtual javax.sound.sampled.AudioInputStream.read:([BII)I
istore 4
5: iload 4
ifgt 8
6: aload 1
invokevirtual javax.sound.sampled.AudioInputStream.close:()V
7: goto 11
8: StackMap locals:
StackMap stack:
iload 5
iload 4
iadd
istore 5
9: aload 2
aload 3
iconst_0
iload 4
invokevirtual com.sun.media.sound.JavaSoundAudioClip$DirectBAOS.write:([BII)V
10: goto 4
11: StackMap locals:
StackMap stack:
aload 0
aload 2
invokevirtual com.sun.media.sound.JavaSoundAudioClip$DirectBAOS.getInternalBuffer:()[B
putfield com.sun.media.sound.JavaSoundAudioClip.loadedAudio:[B
12: aload 0
iload 5
putfield com.sun.media.sound.JavaSoundAudioClip.loadedAudioByteLength:I
13: return
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lcom/sun/media/sound/JavaSoundAudioClip;
0 14 1 as Ljavax/sound/sampled/AudioInputStream;
1 14 2 baos Lcom/sun/media/sound/JavaSoundAudioClip$DirectBAOS;
2 14 3 buffer [B
3 14 4 bytesRead I
4 14 5 totalBytesRead I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
as
private boolean createClip();
descriptor: ()Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=3, args_size=1
start local 0 0: new javax.sound.sampled.DataLine$Info
dup
ldc Ljavax/sound/sampled/Clip;
aload 0
getfield com.sun.media.sound.JavaSoundAudioClip.loadedAudioFormat:Ljavax/sound/sampled/AudioFormat;
invokespecial javax.sound.sampled.DataLine$Info.<init>:(Ljava/lang/Class;Ljavax/sound/sampled/AudioFormat;)V
astore 1
start local 1 1: aload 1
invokestatic javax.sound.sampled.AudioSystem.isLineSupported:(Ljavax/sound/sampled/Line$Info;)Z
ifne 3
2: iconst_0
ireturn
3: StackMap locals: javax.sound.sampled.DataLine$Info
StackMap stack:
aload 1
invokestatic javax.sound.sampled.AudioSystem.getLine:(Ljavax/sound/sampled/Line$Info;)Ljavax/sound/sampled/Line;
astore 2
start local 2 4: aload 2
instanceof com.sun.media.sound.AutoClosingClip
ifne 6
5: iconst_0
ireturn
6: StackMap locals: java.lang.Object
StackMap stack:
aload 0
aload 2
checkcast com.sun.media.sound.AutoClosingClip
putfield com.sun.media.sound.JavaSoundAudioClip.clip:Lcom/sun/media/sound/AutoClosingClip;
7: aload 0
getfield com.sun.media.sound.JavaSoundAudioClip.clip:Lcom/sun/media/sound/AutoClosingClip;
iconst_1
invokeinterface com.sun.media.sound.AutoClosingClip.setAutoClosing:(Z)V
end local 2 end local 1 8: goto 11
StackMap locals: com.sun.media.sound.JavaSoundAudioClip
StackMap stack: java.lang.Exception
9: astore 1
start local 1 10: iconst_0
ireturn
end local 1 11: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.media.sound.JavaSoundAudioClip.clip:Lcom/sun/media/sound/AutoClosingClip;
ifnonnull 13
12: iconst_0
ireturn
13: StackMap locals:
StackMap stack:
iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lcom/sun/media/sound/JavaSoundAudioClip;
1 8 1 info Ljavax/sound/sampled/DataLine$Info;
4 8 2 line Ljava/lang/Object;
10 11 1 e Ljava/lang/Exception;
Exception table:
from to target type
0 2 9 Class java.lang.Exception
3 5 9 Class java.lang.Exception
6 8 9 Class java.lang.Exception
private boolean createSourceDataLine();
descriptor: ()Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=7, locals=3, args_size=1
start local 0 0: new javax.sound.sampled.DataLine$Info
dup
ldc Ljavax/sound/sampled/SourceDataLine;
aload 0
getfield com.sun.media.sound.JavaSoundAudioClip.loadedAudioFormat:Ljavax/sound/sampled/AudioFormat;
invokespecial javax.sound.sampled.DataLine$Info.<init>:(Ljava/lang/Class;Ljavax/sound/sampled/AudioFormat;)V
astore 1
start local 1 1: aload 1
invokestatic javax.sound.sampled.AudioSystem.isLineSupported:(Ljavax/sound/sampled/Line$Info;)Z
ifne 3
2: iconst_0
ireturn
3: StackMap locals: javax.sound.sampled.DataLine$Info
StackMap stack:
aload 1
invokestatic javax.sound.sampled.AudioSystem.getLine:(Ljavax/sound/sampled/Line$Info;)Ljavax/sound/sampled/Line;
checkcast javax.sound.sampled.SourceDataLine
astore 2
start local 2 4: aload 0
new com.sun.media.sound.DataPusher
dup
aload 2
aload 0
getfield com.sun.media.sound.JavaSoundAudioClip.loadedAudioFormat:Ljavax/sound/sampled/AudioFormat;
aload 0
getfield com.sun.media.sound.JavaSoundAudioClip.loadedAudio:[B
aload 0
getfield com.sun.media.sound.JavaSoundAudioClip.loadedAudioByteLength:I
invokespecial com.sun.media.sound.DataPusher.<init>:(Ljavax/sound/sampled/SourceDataLine;Ljavax/sound/sampled/AudioFormat;[BI)V
putfield com.sun.media.sound.JavaSoundAudioClip.datapusher:Lcom/sun/media/sound/DataPusher;
end local 2 end local 1 5: goto 8
StackMap locals: com.sun.media.sound.JavaSoundAudioClip
StackMap stack: java.lang.Exception
6: astore 1
start local 1 7: iconst_0
ireturn
end local 1 8: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.media.sound.JavaSoundAudioClip.datapusher:Lcom/sun/media/sound/DataPusher;
ifnonnull 10
9: iconst_0
ireturn
10: StackMap locals:
StackMap stack:
iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lcom/sun/media/sound/JavaSoundAudioClip;
1 5 1 info Ljavax/sound/sampled/DataLine$Info;
4 5 2 source Ljavax/sound/sampled/SourceDataLine;
7 8 1 e Ljava/lang/Exception;
Exception table:
from to target type
0 2 6 Class java.lang.Exception
3 5 6 Class java.lang.Exception
private boolean createSequencer(java.io.BufferedInputStream);
descriptor: (Ljava/io/BufferedInputStream;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokestatic javax.sound.midi.MidiSystem.getSequencer:()Ljavax/sound/midi/Sequencer;
putfield com.sun.media.sound.JavaSoundAudioClip.sequencer:Ljavax/sound/midi/Sequencer;
1: goto 4
StackMap locals:
StackMap stack: javax.sound.midi.MidiUnavailableException
2: astore 2
start local 2 3: iconst_0
ireturn
end local 2 4: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.media.sound.JavaSoundAudioClip.sequencer:Ljavax/sound/midi/Sequencer;
ifnonnull 6
5: iconst_0
ireturn
6: StackMap locals:
StackMap stack:
aload 0
aload 1
invokestatic javax.sound.midi.MidiSystem.getSequence:(Ljava/io/InputStream;)Ljavax/sound/midi/Sequence;
putfield com.sun.media.sound.JavaSoundAudioClip.sequence:Ljavax/sound/midi/Sequence;
7: aload 0
getfield com.sun.media.sound.JavaSoundAudioClip.sequence:Ljavax/sound/midi/Sequence;
ifnonnull 11
8: iconst_0
ireturn
9: StackMap locals:
StackMap stack: javax.sound.midi.InvalidMidiDataException
astore 2
start local 2 10: iconst_0
ireturn
end local 2 11: StackMap locals:
StackMap stack:
iconst_1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lcom/sun/media/sound/JavaSoundAudioClip;
0 12 1 in Ljava/io/BufferedInputStream;
3 4 2 me Ljavax/sound/midi/MidiUnavailableException;
10 11 2 e Ljavax/sound/midi/InvalidMidiDataException;
Exception table:
from to target type
0 1 2 Class javax.sound.midi.MidiUnavailableException
6 8 9 Class javax.sound.midi.InvalidMidiDataException
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
in
}
SourceFile: "JavaSoundAudioClip.java"
NestMembers:
com.sun.media.sound.JavaSoundAudioClip$DirectBAOS
InnerClasses:
private DirectBAOS = com.sun.media.sound.JavaSoundAudioClip$DirectBAOS of com.sun.media.sound.JavaSoundAudioClip
public Info = javax.sound.sampled.DataLine$Info of javax.sound.sampled.DataLine
public Info = javax.sound.sampled.Line$Info of javax.sound.sampled.Line