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 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>(java.io.InputStream);
descriptor: (Ljava/io/InputStream;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=5, args_size=2
start local 0 start local 1 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: new java.io.BufferedInputStream
dup
aload 1
sipush 1024
invokespecial java.io.BufferedInputStream.<init>:(Ljava/io/InputStream;I)V
astore 2
start local 2 12: aload 2
sipush 1024
invokevirtual java.io.BufferedInputStream.mark:(I)V
13: iconst_0
istore 3
start local 3 14: aload 2
invokestatic javax.sound.sampled.AudioSystem.getAudioInputStream:(Ljava/io/InputStream;)Ljavax/sound/sampled/AudioInputStream;
astore 4
start local 4 15: aload 0
aload 4
invokevirtual com.sun.media.sound.JavaSoundAudioClip.loadAudioData:(Ljavax/sound/sampled/AudioInputStream;)Z
istore 3
16: iload 3
ifeq 29
17: iconst_0
istore 3
18: aload 0
getfield com.sun.media.sound.JavaSoundAudioClip.loadedAudioByteLength:I
i2l
ldc 1048576
lcmp
ifge 20
19: aload 0
invokevirtual com.sun.media.sound.JavaSoundAudioClip.createClip:()Z
istore 3
20: StackMap locals: com.sun.media.sound.JavaSoundAudioClip java.io.InputStream java.io.BufferedInputStream int javax.sound.sampled.AudioInputStream
StackMap stack:
iload 3
ifne 29
21: aload 0
invokevirtual com.sun.media.sound.JavaSoundAudioClip.createSourceDataLine:()Z
istore 3
end local 4 22: goto 29
StackMap locals: com.sun.media.sound.JavaSoundAudioClip java.io.InputStream java.io.BufferedInputStream int
StackMap stack: javax.sound.sampled.UnsupportedAudioFileException
23: pop
24: aload 2
invokestatic javax.sound.midi.MidiSystem.getMidiFileFormat:(Ljava/io/InputStream;)Ljavax/sound/midi/MidiFileFormat;
pop
25: aload 0
aload 2
invokevirtual com.sun.media.sound.JavaSoundAudioClip.createSequencer:(Ljava/io/BufferedInputStream;)Z
istore 3
26: goto 29
StackMap locals:
StackMap stack: javax.sound.midi.InvalidMidiDataException
27: pop
28: iconst_0
istore 3
29: StackMap locals:
StackMap stack:
iload 3
ifne 31
30: new java.io.IOException
dup
ldc "Unable to create AudioClip from input stream"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
31: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 32 0 this Lcom/sun/media/sound/JavaSoundAudioClip;
0 32 1 in Ljava/io/InputStream;
12 32 2 bis Ljava/io/BufferedInputStream;
14 32 3 success Z
15 22 4 as Ljavax/sound/sampled/AudioInputStream;
Exception table:
from to target type
14 22 23 Class javax.sound.sampled.UnsupportedAudioFileException
24 26 27 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
iconst_0
invokevirtual com.sun.media.sound.JavaSoundAudioClip.startImpl:(Z)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 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
iconst_1
invokevirtual com.sun.media.sound.JavaSoundAudioClip.startImpl:(Z)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 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 19
6: aload 0
getfield com.sun.media.sound.JavaSoundAudioClip.clip:Lcom/sun/media/sound/AutoClosingClip;
invokeinterface com.sun.media.sound.AutoClosingClip.isOpen:()Z
ifne 9
7: 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
aload 0
getfield com.sun.media.sound.JavaSoundAudioClip.loadedAudioByteLength:I
invokeinterface com.sun.media.sound.AutoClosingClip.open:(Ljavax/sound/sampled/AudioFormat;[BII)V
8: goto 12
9: 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
10: iload 1
aload 0
getfield com.sun.media.sound.JavaSoundAudioClip.clipLooping:Z
if_icmpeq 12
11: aload 0
getfield com.sun.media.sound.JavaSoundAudioClip.clip:Lcom/sun/media/sound/AutoClosingClip;
invokeinterface com.sun.media.sound.AutoClosingClip.stop:()V
12: 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
13: iload 1
ifeq 16
14: 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
15: goto 17
16: 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
17: StackMap locals:
StackMap stack:
aload 0
iload 1
putfield com.sun.media.sound.JavaSoundAudioClip.clipLooping:Z
18: goto 38
StackMap locals:
StackMap stack:
19: aload 0
getfield com.sun.media.sound.JavaSoundAudioClip.datapusher:Lcom/sun/media/sound/DataPusher;
ifnull 22
20: 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
21: goto 38
StackMap locals:
StackMap stack:
22: aload 0
getfield com.sun.media.sound.JavaSoundAudioClip.sequencer:Ljavax/sound/midi/Sequencer;
ifnull 38
23: aload 0
iload 1
putfield com.sun.media.sound.JavaSoundAudioClip.sequencerloop:Z
24: aload 0
getfield com.sun.media.sound.JavaSoundAudioClip.sequencer:Ljavax/sound/midi/Sequencer;
invokeinterface javax.sound.midi.Sequencer.isRunning:()Z
ifeq 26
25: aload 0
getfield com.sun.media.sound.JavaSoundAudioClip.sequencer:Ljavax/sound/midi/Sequencer;
lconst_0
invokeinterface javax.sound.midi.Sequencer.setMicrosecondPosition:(J)V
26: 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 32
27: aload 0
getfield com.sun.media.sound.JavaSoundAudioClip.sequencer:Ljavax/sound/midi/Sequencer;
invokeinterface javax.sound.midi.Sequencer.open:()V
28: 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
29: goto 32
StackMap locals:
StackMap stack: javax.sound.midi.InvalidMidiDataException
30: astore 6
goto 32
31: StackMap locals:
StackMap stack: javax.sound.midi.MidiUnavailableException
astore 6
32: 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
33: aload 0
getfield com.sun.media.sound.JavaSoundAudioClip.sequencer:Ljavax/sound/midi/Sequencer;
invokeinterface javax.sound.midi.Sequencer.start:()V
34: goto 38
StackMap locals:
StackMap stack: java.lang.Exception
35: astore 6
36: goto 38
StackMap locals:
StackMap stack: java.lang.Exception
37: astore 6
38: StackMap locals:
StackMap stack:
return
end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 39 0 this Lcom/sun/media/sound/JavaSoundAudioClip;
0 39 1 loop Z
1 39 2 currentTime J
2 39 4 diff J
Exception table:
from to target type
27 29 30 Class javax.sound.midi.InvalidMidiDataException
27 29 31 Class javax.sound.midi.MidiUnavailableException
33 34 35 Class java.lang.Exception
5 36 37 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
lconst_0
putfield com.sun.media.sound.JavaSoundAudioClip.lastPlayCall:J
1: aload 0
getfield com.sun.media.sound.JavaSoundAudioClip.clip:Lcom/sun/media/sound/AutoClosingClip;
ifnull 9
2: aload 0
getfield com.sun.media.sound.JavaSoundAudioClip.clip:Lcom/sun/media/sound/AutoClosingClip;
invokeinterface com.sun.media.sound.AutoClosingClip.flush:()V
3: goto 5
StackMap locals:
StackMap stack: java.lang.Exception
4: astore 1
5: 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
6: goto 21
StackMap locals:
StackMap stack: java.lang.Exception
7: astore 1
8: goto 21
StackMap locals:
StackMap stack:
9: aload 0
getfield com.sun.media.sound.JavaSoundAudioClip.datapusher:Lcom/sun/media/sound/DataPusher;
ifnull 12
10: aload 0
getfield com.sun.media.sound.JavaSoundAudioClip.datapusher:Lcom/sun/media/sound/DataPusher;
invokevirtual com.sun.media.sound.DataPusher.stop:()V
11: goto 21
StackMap locals:
StackMap stack:
12: aload 0
getfield com.sun.media.sound.JavaSoundAudioClip.sequencer:Ljavax/sound/midi/Sequencer;
ifnull 21
13: aload 0
iconst_0
putfield com.sun.media.sound.JavaSoundAudioClip.sequencerloop:Z
14: 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
15: aload 0
getfield com.sun.media.sound.JavaSoundAudioClip.sequencer:Ljavax/sound/midi/Sequencer;
invokeinterface javax.sound.midi.Sequencer.stop:()V
16: goto 18
StackMap locals:
StackMap stack: java.lang.Exception
17: astore 1
18: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.media.sound.JavaSoundAudioClip.sequencer:Ljavax/sound/midi/Sequencer;
invokeinterface javax.sound.midi.Sequencer.close:()V
19: goto 21
StackMap locals:
StackMap stack: java.lang.Exception
20: astore 1
21: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 22 0 this Lcom/sun/media/sound/JavaSoundAudioClip;
Exception table:
from to target type
2 3 4 Class java.lang.Exception
5 6 7 Class java.lang.Exception
13 16 17 Class java.lang.Exception
18 19 20 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