public final class com.sun.media.sound.MidiUtils$TempoCache
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: com.sun.media.sound.MidiUtils$TempoCache
super_class: java.lang.Object
{
long[] ticks;
descriptor: [J
flags: (0x0000)
int[] tempos;
descriptor: [I
flags: (0x0000)
int snapshotIndex;
descriptor: I
flags: (0x0000)
int snapshotMicro;
descriptor: I
flags: (0x0000)
int currTempo;
descriptor: I
flags: (0x0000)
private boolean firstTempoIsFake;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
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
iconst_0
putfield com.sun.media.sound.MidiUtils$TempoCache.snapshotIndex:I
2: aload 0
iconst_0
putfield com.sun.media.sound.MidiUtils$TempoCache.snapshotMicro:I
3: aload 0
iconst_0
putfield com.sun.media.sound.MidiUtils$TempoCache.firstTempoIsFake:Z
4: aload 0
iconst_1
newarray 11
putfield com.sun.media.sound.MidiUtils$TempoCache.ticks:[J
5: aload 0
iconst_1
newarray 10
putfield com.sun.media.sound.MidiUtils$TempoCache.tempos:[I
6: aload 0
getfield com.sun.media.sound.MidiUtils$TempoCache.tempos:[I
iconst_0
ldc 500000
iastore
7: aload 0
iconst_0
putfield com.sun.media.sound.MidiUtils$TempoCache.snapshotIndex:I
8: aload 0
iconst_0
putfield com.sun.media.sound.MidiUtils$TempoCache.snapshotMicro:I
9: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lcom/sun/media/sound/MidiUtils$TempoCache;
public void <init>(javax.sound.midi.Sequence);
descriptor: (Ljavax/sound/midi/Sequence;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial com.sun.media.sound.MidiUtils$TempoCache.<init>:()V
1: aload 0
aload 1
invokevirtual com.sun.media.sound.MidiUtils$TempoCache.refresh:(Ljavax/sound/midi/Sequence;)V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/sun/media/sound/MidiUtils$TempoCache;
0 3 1 seq Ljavax/sound/midi/Sequence;
MethodParameters:
Name Flags
seq
public synchronized void refresh(javax.sound.midi.Sequence);
descriptor: (Ljavax/sound/midi/Sequence;)V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=4, locals=9, args_size=2
start local 0 start local 1 0: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 2
start local 2 1: aload 1
invokevirtual javax.sound.midi.Sequence.getTracks:()[Ljavax/sound/midi/Track;
astore 3
start local 3 2: aload 3
arraylength
ifle 13
3: aload 3
iconst_0
aaload
astore 4
start local 4 4: aload 4
invokevirtual javax.sound.midi.Track.size:()I
istore 5
start local 5 5: iconst_0
istore 6
start local 6 6: goto 12
7: StackMap locals: com.sun.media.sound.MidiUtils$TempoCache javax.sound.midi.Sequence java.util.ArrayList javax.sound.midi.Track[] javax.sound.midi.Track int int
StackMap stack:
aload 4
iload 6
invokevirtual javax.sound.midi.Track.get:(I)Ljavax/sound/midi/MidiEvent;
astore 7
start local 7 8: aload 7
invokevirtual javax.sound.midi.MidiEvent.getMessage:()Ljavax/sound/midi/MidiMessage;
astore 8
start local 8 9: aload 8
invokestatic com.sun.media.sound.MidiUtils.isMetaTempo:(Ljavax/sound/midi/MidiMessage;)Z
ifeq 11
10: aload 2
aload 7
invokevirtual java.util.ArrayList.add:(Ljava/lang/Object;)Z
pop
end local 8 end local 7 11: StackMap locals:
StackMap stack:
iinc 6 1
StackMap locals:
StackMap stack:
12: iload 6
iload 5
if_icmplt 7
end local 6 end local 5 end local 4 13: StackMap locals:
StackMap stack:
aload 2
invokevirtual java.util.ArrayList.size:()I
iconst_1
iadd
istore 4
start local 4 14: aload 0
iconst_1
putfield com.sun.media.sound.MidiUtils$TempoCache.firstTempoIsFake:Z
15: iload 4
iconst_1
if_icmple 19
16: aload 2
iconst_0
invokevirtual java.util.ArrayList.get:(I)Ljava/lang/Object;
checkcast javax.sound.midi.MidiEvent
invokevirtual javax.sound.midi.MidiEvent.getTick:()J
lconst_0
lcmp
ifne 19
17: iinc 4 -1
18: aload 0
iconst_0
putfield com.sun.media.sound.MidiUtils$TempoCache.firstTempoIsFake:Z
19: StackMap locals: int
StackMap stack:
aload 0
iload 4
newarray 11
putfield com.sun.media.sound.MidiUtils$TempoCache.ticks:[J
20: aload 0
iload 4
newarray 10
putfield com.sun.media.sound.MidiUtils$TempoCache.tempos:[I
21: iconst_0
istore 5
start local 5 22: aload 0
getfield com.sun.media.sound.MidiUtils$TempoCache.firstTempoIsFake:Z
ifeq 26
23: aload 0
getfield com.sun.media.sound.MidiUtils$TempoCache.ticks:[J
iconst_0
lconst_0
lastore
24: aload 0
getfield com.sun.media.sound.MidiUtils$TempoCache.tempos:[I
iconst_0
ldc 500000
iastore
25: iinc 5 1
26: StackMap locals: int
StackMap stack:
iconst_0
istore 6
start local 6 27: goto 32
28: StackMap locals: int
StackMap stack:
aload 2
iload 6
invokevirtual java.util.ArrayList.get:(I)Ljava/lang/Object;
checkcast javax.sound.midi.MidiEvent
astore 7
start local 7 29: aload 0
getfield com.sun.media.sound.MidiUtils$TempoCache.ticks:[J
iload 5
aload 7
invokevirtual javax.sound.midi.MidiEvent.getTick:()J
lastore
30: aload 0
getfield com.sun.media.sound.MidiUtils$TempoCache.tempos:[I
iload 5
aload 7
invokevirtual javax.sound.midi.MidiEvent.getMessage:()Ljavax/sound/midi/MidiMessage;
invokestatic com.sun.media.sound.MidiUtils.getTempoMPQ:(Ljavax/sound/midi/MidiMessage;)I
iastore
end local 7 31: iinc 6 1
iinc 5 1
StackMap locals:
StackMap stack:
32: iload 6
aload 2
invokevirtual java.util.ArrayList.size:()I
if_icmplt 28
end local 6 33: aload 0
iconst_0
putfield com.sun.media.sound.MidiUtils$TempoCache.snapshotIndex:I
34: aload 0
iconst_0
putfield com.sun.media.sound.MidiUtils$TempoCache.snapshotMicro:I
35: 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 36 0 this Lcom/sun/media/sound/MidiUtils$TempoCache;
0 36 1 seq Ljavax/sound/midi/Sequence;
1 36 2 list Ljava/util/ArrayList;
2 36 3 tracks [Ljavax/sound/midi/Track;
4 13 4 track Ljavax/sound/midi/Track;
5 13 5 c I
6 13 6 i I
8 11 7 ev Ljavax/sound/midi/MidiEvent;
9 11 8 msg Ljavax/sound/midi/MidiMessage;
14 36 4 size I
22 36 5 e I
27 33 6 i I
29 31 7 evt Ljavax/sound/midi/MidiEvent;
MethodParameters:
Name Flags
seq
public int getCurrTempoMPQ();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.sun.media.sound.MidiUtils$TempoCache.currTempo:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/media/sound/MidiUtils$TempoCache;
float getTempoMPQAt(long);
descriptor: (J)F
flags: (0x0000)
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 0
lload 1
ldc -1.0
invokevirtual com.sun.media.sound.MidiUtils$TempoCache.getTempoMPQAt:(JF)F
freturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/media/sound/MidiUtils$TempoCache;
0 1 1 tick J
MethodParameters:
Name Flags
tick
synchronized float getTempoMPQAt(long, float);
descriptor: (JF)F
flags: (0x0020) ACC_SYNCHRONIZED
Code:
stack=4, locals=5, args_size=3
start local 0 start local 1 start local 3 0: iconst_0
istore 4
start local 4 1: goto 8
2: StackMap locals: int
StackMap stack:
aload 0
getfield com.sun.media.sound.MidiUtils$TempoCache.ticks:[J
iload 4
laload
lload 1
lcmp
ifle 7
3: iload 4
ifle 4
iinc 4 -1
4: StackMap locals:
StackMap stack:
fload 3
fconst_0
fcmpl
ifle 6
iload 4
ifne 6
aload 0
getfield com.sun.media.sound.MidiUtils$TempoCache.firstTempoIsFake:Z
ifeq 6
5: fload 3
freturn
6: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.media.sound.MidiUtils$TempoCache.tempos:[I
iload 4
iaload
i2f
freturn
7: StackMap locals:
StackMap stack:
iinc 4 1
StackMap locals:
StackMap stack:
8: iload 4
aload 0
getfield com.sun.media.sound.MidiUtils$TempoCache.ticks:[J
arraylength
if_icmplt 2
end local 4 9: aload 0
getfield com.sun.media.sound.MidiUtils$TempoCache.tempos:[I
aload 0
getfield com.sun.media.sound.MidiUtils$TempoCache.tempos:[I
arraylength
iconst_1
isub
iaload
i2f
freturn
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lcom/sun/media/sound/MidiUtils$TempoCache;
0 10 1 tick J
0 10 3 startTempoMPQ F
1 9 4 i I
MethodParameters:
Name Flags
tick
startTempoMPQ
}
SourceFile: "MidiUtils.java"
NestHost: com.sun.media.sound.MidiUtils
InnerClasses:
public final TempoCache = com.sun.media.sound.MidiUtils$TempoCache of com.sun.media.sound.MidiUtils