final class com.sun.media.jfxmediaimpl.NativeAudioSpectrum implements com.sun.media.jfxmedia.effects.AudioSpectrum
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: com.sun.media.jfxmediaimpl.NativeAudioSpectrum
super_class: java.lang.Object
{
private static final float[] EMPTY_FLOAT_ARRAY;
descriptor: [F
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
public static final int DEFAULT_THRESHOLD;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: -60
public static final int DEFAULT_BANDS;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 128
public static final double DEFAULT_INTERVAL;
descriptor: D
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 0.1
private final long nativeRef;
descriptor: J
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private float[] magnitudes;
descriptor: [F
flags: (0x0002) ACC_PRIVATE
private float[] phases;
descriptor: [F
flags: (0x0002) ACC_PRIVATE
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: iconst_0
newarray 6
putstatic com.sun.media.jfxmediaimpl.NativeAudioSpectrum.EMPTY_FLOAT_ARRAY:[F
1: return
LocalVariableTable:
Start End Slot Name Signature
void <init>(long);
descriptor: (J)V
flags: (0x0000)
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
getstatic com.sun.media.jfxmediaimpl.NativeAudioSpectrum.EMPTY_FLOAT_ARRAY:[F
putfield com.sun.media.jfxmediaimpl.NativeAudioSpectrum.magnitudes:[F
2: aload 0
getstatic com.sun.media.jfxmediaimpl.NativeAudioSpectrum.EMPTY_FLOAT_ARRAY:[F
putfield com.sun.media.jfxmediaimpl.NativeAudioSpectrum.phases:[F
3: lload 1
lconst_0
lcmp
ifne 5
4: new java.lang.IllegalArgumentException
dup
ldc "Invalid native media reference"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
5: StackMap locals: com.sun.media.jfxmediaimpl.NativeAudioSpectrum long
StackMap stack:
aload 0
lload 1
putfield com.sun.media.jfxmediaimpl.NativeAudioSpectrum.nativeRef:J
6: aload 0
sipush 128
invokevirtual com.sun.media.jfxmediaimpl.NativeAudioSpectrum.setBandCount:(I)V
7: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lcom/sun/media/jfxmediaimpl/NativeAudioSpectrum;
0 8 1 refMedia J
MethodParameters:
Name Flags
refMedia
public boolean getEnabled();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
aload 0
getfield com.sun.media.jfxmediaimpl.NativeAudioSpectrum.nativeRef:J
invokevirtual com.sun.media.jfxmediaimpl.NativeAudioSpectrum.nativeGetEnabled:(J)Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/media/jfxmediaimpl/NativeAudioSpectrum;
public void setEnabled(boolean);
descriptor: (Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 0
getfield com.sun.media.jfxmediaimpl.NativeAudioSpectrum.nativeRef:J
iload 1
invokevirtual com.sun.media.jfxmediaimpl.NativeAudioSpectrum.nativeSetEnabled:(JZ)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/sun/media/jfxmediaimpl/NativeAudioSpectrum;
0 2 1 enabled Z
MethodParameters:
Name Flags
enabled
public int getBandCount();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.sun.media.jfxmediaimpl.NativeAudioSpectrum.phases:[F
arraylength
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/media/jfxmediaimpl/NativeAudioSpectrum;
public void setBandCount(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=3, args_size=2
start local 0 start local 1 0: iload 1
iconst_1
if_icmple 10
1: aload 0
iload 1
newarray 6
putfield com.sun.media.jfxmediaimpl.NativeAudioSpectrum.magnitudes:[F
2: iconst_0
istore 2
start local 2 3: goto 6
4: StackMap locals: int
StackMap stack:
aload 0
getfield com.sun.media.jfxmediaimpl.NativeAudioSpectrum.magnitudes:[F
iload 2
ldc -60.0
fastore
5: iinc 2 1
StackMap locals:
StackMap stack:
6: iload 2
aload 0
getfield com.sun.media.jfxmediaimpl.NativeAudioSpectrum.magnitudes:[F
arraylength
if_icmplt 4
end local 2 7: aload 0
iload 1
newarray 6
putfield com.sun.media.jfxmediaimpl.NativeAudioSpectrum.phases:[F
8: aload 0
aload 0
getfield com.sun.media.jfxmediaimpl.NativeAudioSpectrum.nativeRef:J
iload 1
aload 0
getfield com.sun.media.jfxmediaimpl.NativeAudioSpectrum.magnitudes:[F
aload 0
getfield com.sun.media.jfxmediaimpl.NativeAudioSpectrum.phases:[F
invokevirtual com.sun.media.jfxmediaimpl.NativeAudioSpectrum.nativeSetBands:(JI[F[F)V
9: goto 13
10: StackMap locals:
StackMap stack:
aload 0
getstatic com.sun.media.jfxmediaimpl.NativeAudioSpectrum.EMPTY_FLOAT_ARRAY:[F
putfield com.sun.media.jfxmediaimpl.NativeAudioSpectrum.magnitudes:[F
11: aload 0
getstatic com.sun.media.jfxmediaimpl.NativeAudioSpectrum.EMPTY_FLOAT_ARRAY:[F
putfield com.sun.media.jfxmediaimpl.NativeAudioSpectrum.phases:[F
12: new java.lang.IllegalArgumentException
dup
ldc "Number of bands must at least be 2"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
13: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lcom/sun/media/jfxmediaimpl/NativeAudioSpectrum;
0 14 1 bands I
3 7 2 i I
MethodParameters:
Name Flags
bands
public double getInterval();
descriptor: ()D
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
aload 0
getfield com.sun.media.jfxmediaimpl.NativeAudioSpectrum.nativeRef:J
invokevirtual com.sun.media.jfxmediaimpl.NativeAudioSpectrum.nativeGetInterval:(J)D
dreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/media/jfxmediaimpl/NativeAudioSpectrum;
public void setInterval(double);
descriptor: (D)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: dload 1
ldc 1.0E9
dmul
dconst_1
dcmpl
iflt 3
1: aload 0
aload 0
getfield com.sun.media.jfxmediaimpl.NativeAudioSpectrum.nativeRef:J
dload 1
invokevirtual com.sun.media.jfxmediaimpl.NativeAudioSpectrum.nativeSetInterval:(JD)V
2: goto 4
3: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
ldc "Interval can't be less that 1 nanosecond"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/sun/media/jfxmediaimpl/NativeAudioSpectrum;
0 5 1 interval D
MethodParameters:
Name Flags
interval
public int getSensitivityThreshold();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
aload 0
getfield com.sun.media.jfxmediaimpl.NativeAudioSpectrum.nativeRef:J
invokevirtual com.sun.media.jfxmediaimpl.NativeAudioSpectrum.nativeGetThreshold:(J)I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/media/jfxmediaimpl/NativeAudioSpectrum;
public void setSensitivityThreshold(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=2, args_size=2
start local 0 start local 1 0: iload 1
ifgt 3
1: aload 0
aload 0
getfield com.sun.media.jfxmediaimpl.NativeAudioSpectrum.nativeRef:J
iload 1
invokevirtual com.sun.media.jfxmediaimpl.NativeAudioSpectrum.nativeSetThreshold:(JI)V
2: goto 4
3: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
ldc "Sensitivity threshold must be less than 0: %d"
iconst_1
anewarray java.lang.Object
dup
iconst_0
iload 1
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/sun/media/jfxmediaimpl/NativeAudioSpectrum;
0 5 1 threshold I
MethodParameters:
Name Flags
threshold
public float[] getMagnitudes(float[]);
descriptor: ([F)[F
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield com.sun.media.jfxmediaimpl.NativeAudioSpectrum.magnitudes:[F
arraylength
istore 2
start local 2 1: aload 1
ifnull 2
aload 1
arraylength
iload 2
if_icmpge 3
2: StackMap locals: int
StackMap stack:
iload 2
newarray 6
astore 1
3: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.media.jfxmediaimpl.NativeAudioSpectrum.magnitudes:[F
iconst_0
aload 1
iconst_0
iload 2
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
4: aload 1
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/sun/media/jfxmediaimpl/NativeAudioSpectrum;
0 5 1 mag [F
1 5 2 size I
MethodParameters:
Name Flags
mag
public float[] getPhases(float[]);
descriptor: ([F)[F
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield com.sun.media.jfxmediaimpl.NativeAudioSpectrum.phases:[F
arraylength
istore 2
start local 2 1: aload 1
ifnull 2
aload 1
arraylength
iload 2
if_icmpge 3
2: StackMap locals: int
StackMap stack:
iload 2
newarray 6
astore 1
3: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.media.jfxmediaimpl.NativeAudioSpectrum.phases:[F
iconst_0
aload 1
iconst_0
iload 2
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
4: aload 1
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/sun/media/jfxmediaimpl/NativeAudioSpectrum;
0 5 1 phs [F
1 5 2 size I
MethodParameters:
Name Flags
phs
private native boolean nativeGetEnabled(long);
descriptor: (J)Z
flags: (0x0102) ACC_PRIVATE, ACC_NATIVE
MethodParameters:
Name Flags
nativeRef
private native void nativeSetEnabled(long, boolean);
descriptor: (JZ)V
flags: (0x0102) ACC_PRIVATE, ACC_NATIVE
MethodParameters:
Name Flags
nativeRef
enable
private native void nativeSetBands(long, int, float[], float[]);
descriptor: (JI[F[F)V
flags: (0x0102) ACC_PRIVATE, ACC_NATIVE
MethodParameters:
Name Flags
nativeRef
bands
magnitudes
phases
private native double nativeGetInterval(long);
descriptor: (J)D
flags: (0x0102) ACC_PRIVATE, ACC_NATIVE
MethodParameters:
Name Flags
nativeRef
private native void nativeSetInterval(long, double);
descriptor: (JD)V
flags: (0x0102) ACC_PRIVATE, ACC_NATIVE
MethodParameters:
Name Flags
nativeRef
interval
private native int nativeGetThreshold(long);
descriptor: (J)I
flags: (0x0102) ACC_PRIVATE, ACC_NATIVE
MethodParameters:
Name Flags
nativeRef
private native void nativeSetThreshold(long, int);
descriptor: (JI)V
flags: (0x0102) ACC_PRIVATE, ACC_NATIVE
MethodParameters:
Name Flags
nativeRef
threshold
}
SourceFile: "NativeAudioSpectrum.java"