public final class com.sun.media.sound.SoftAudioPusher implements java.lang.Runnable
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: com.sun.media.sound.SoftAudioPusher
super_class: java.lang.Object
{
private volatile boolean active;
descriptor: Z
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
private javax.sound.sampled.SourceDataLine sourceDataLine;
descriptor: Ljavax/sound/sampled/SourceDataLine;
flags: (0x0002) ACC_PRIVATE
private java.lang.Thread audiothread;
descriptor: Ljava/lang/Thread;
flags: (0x0002) ACC_PRIVATE
private final javax.sound.sampled.AudioInputStream ais;
descriptor: Ljavax/sound/sampled/AudioInputStream;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final byte[] buffer;
descriptor: [B
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public void <init>(javax.sound.sampled.SourceDataLine, javax.sound.sampled.AudioInputStream, int);
descriptor: (Ljavax/sound/sampled/SourceDataLine;Ljavax/sound/sampled/AudioInputStream;I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
iconst_0
putfield com.sun.media.sound.SoftAudioPusher.active:Z
2: aload 0
aconst_null
putfield com.sun.media.sound.SoftAudioPusher.sourceDataLine:Ljavax/sound/sampled/SourceDataLine;
3: aload 0
aload 2
putfield com.sun.media.sound.SoftAudioPusher.ais:Ljavax/sound/sampled/AudioInputStream;
4: aload 0
iload 3
newarray 8
putfield com.sun.media.sound.SoftAudioPusher.buffer:[B
5: aload 0
aload 1
putfield com.sun.media.sound.SoftAudioPusher.sourceDataLine:Ljavax/sound/sampled/SourceDataLine;
6: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lcom/sun/media/sound/SoftAudioPusher;
0 7 1 sourceDataLine Ljavax/sound/sampled/SourceDataLine;
0 7 2 ais Ljavax/sound/sampled/AudioInputStream;
0 7 3 workbuffersizer I
MethodParameters:
Name Flags
sourceDataLine
ais
workbuffersizer
public synchronized void start();
descriptor: ()V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
getfield com.sun.media.sound.SoftAudioPusher.active:Z
ifeq 2
1: return
2: StackMap locals:
StackMap stack:
aload 0
iconst_1
putfield com.sun.media.sound.SoftAudioPusher.active:Z
3: aload 0
new java.lang.Thread
dup
aload 0
invokespecial java.lang.Thread.<init>:(Ljava/lang/Runnable;)V
putfield com.sun.media.sound.SoftAudioPusher.audiothread:Ljava/lang/Thread;
4: aload 0
getfield com.sun.media.sound.SoftAudioPusher.audiothread:Ljava/lang/Thread;
iconst_1
invokevirtual java.lang.Thread.setDaemon:(Z)V
5: aload 0
getfield com.sun.media.sound.SoftAudioPusher.audiothread:Ljava/lang/Thread;
bipush 10
invokevirtual java.lang.Thread.setPriority:(I)V
6: aload 0
getfield com.sun.media.sound.SoftAudioPusher.audiothread:Ljava/lang/Thread;
invokevirtual java.lang.Thread.start:()V
7: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lcom/sun/media/sound/SoftAudioPusher;
public synchronized void stop();
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.SoftAudioPusher.active:Z
ifne 2
1: return
2: StackMap locals:
StackMap stack:
aload 0
iconst_0
putfield com.sun.media.sound.SoftAudioPusher.active:Z
3: aload 0
getfield com.sun.media.sound.SoftAudioPusher.audiothread:Ljava/lang/Thread;
invokevirtual java.lang.Thread.join:()V
4: goto 6
StackMap locals:
StackMap stack: java.lang.InterruptedException
5: pop
6: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lcom/sun/media/sound/SoftAudioPusher;
Exception table:
from to target type
3 4 5 Class java.lang.InterruptedException
public void run();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=5, args_size=1
start local 0 0: aload 0
getfield com.sun.media.sound.SoftAudioPusher.buffer:[B
astore 1
start local 1 1: aload 0
getfield com.sun.media.sound.SoftAudioPusher.ais:Ljavax/sound/sampled/AudioInputStream;
astore 2
start local 2 2: aload 0
getfield com.sun.media.sound.SoftAudioPusher.sourceDataLine:Ljavax/sound/sampled/SourceDataLine;
astore 3
start local 3 3: goto 7
4: StackMap locals: byte[] javax.sound.sampled.AudioInputStream javax.sound.sampled.SourceDataLine
StackMap stack:
aload 2
aload 1
invokevirtual javax.sound.sampled.AudioInputStream.read:([B)I
istore 4
start local 4 5: iload 4
ifge 6
goto 11
6: StackMap locals: int
StackMap stack:
aload 3
aload 1
iconst_0
iload 4
invokeinterface javax.sound.sampled.SourceDataLine.write:([BII)I
pop
end local 4 7: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.media.sound.SoftAudioPusher.active:Z
ifne 4
8: goto 11
StackMap locals:
StackMap stack: java.io.IOException
9: pop
10: aload 0
iconst_0
putfield com.sun.media.sound.SoftAudioPusher.active:Z
11: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lcom/sun/media/sound/SoftAudioPusher;
1 12 1 buffer [B
2 12 2 ais Ljavax/sound/sampled/AudioInputStream;
3 12 3 sourceDataLine Ljavax/sound/sampled/SourceDataLine;
5 7 4 count I
Exception table:
from to target type
3 8 9 Class java.io.IOException
}
SourceFile: "SoftAudioPusher.java"