Searched refs:testarray (Results 1 - 25 of 35) sorted by relevance

12

/openjdk10/jdk/test/javax/sound/midi/Gervill/ModelByteBufferWavetable/
H A DSetLoopType.java37 static float[] testarray; field in class:SetLoopType
49 testarray = new float[1024];
53 testarray[i] = (float)Math.sin(10*ii*2*Math.PI);
54 testarray[i] += (float)Math.sin(1.731 + 2*ii*2*Math.PI);
55 testarray[i] += (float)Math.sin(0.231 + 6.3*ii*2*Math.PI);
56 testarray[i] *= 0.3;
58 test_byte_array = new byte[testarray.length*2];
59 AudioFloatConverter.getConverter(format).toByteArray(testarray, test_byte_array);
62 byte[] test_byte_array2 = new byte[testarray.length*3];
64 test_byte_array_8ext = new byte[testarray
[all...]
H A DGetAttenuation.java37 static float[] testarray; field in class:GetAttenuation
49 testarray = new float[1024];
53 testarray[i] = (float)Math.sin(10*ii*2*Math.PI);
54 testarray[i] += (float)Math.sin(1.731 + 2*ii*2*Math.PI);
55 testarray[i] += (float)Math.sin(0.231 + 6.3*ii*2*Math.PI);
56 testarray[i] *= 0.3;
58 test_byte_array = new byte[testarray.length*2];
59 AudioFloatConverter.getConverter(format).toByteArray(testarray, test_byte_array);
62 byte[] test_byte_array2 = new byte[testarray.length*3];
64 test_byte_array_8ext = new byte[testarray
[all...]
H A DGetLoopLength.java37 static float[] testarray; field in class:GetLoopLength
49 testarray = new float[1024];
53 testarray[i] = (float)Math.sin(10*ii*2*Math.PI);
54 testarray[i] += (float)Math.sin(1.731 + 2*ii*2*Math.PI);
55 testarray[i] += (float)Math.sin(0.231 + 6.3*ii*2*Math.PI);
56 testarray[i] *= 0.3;
58 test_byte_array = new byte[testarray.length*2];
59 AudioFloatConverter.getConverter(format).toByteArray(testarray, test_byte_array);
62 byte[] test_byte_array2 = new byte[testarray.length*3];
64 test_byte_array_8ext = new byte[testarray
[all...]
H A DGetLoopStart.java37 static float[] testarray; field in class:GetLoopStart
49 testarray = new float[1024];
53 testarray[i] = (float)Math.sin(10*ii*2*Math.PI);
54 testarray[i] += (float)Math.sin(1.731 + 2*ii*2*Math.PI);
55 testarray[i] += (float)Math.sin(0.231 + 6.3*ii*2*Math.PI);
56 testarray[i] *= 0.3;
58 test_byte_array = new byte[testarray.length*2];
59 AudioFloatConverter.getConverter(format).toByteArray(testarray, test_byte_array);
62 byte[] test_byte_array2 = new byte[testarray.length*3];
64 test_byte_array_8ext = new byte[testarray
[all...]
H A DNewModelByteBufferWavetableModelByteBufferFloat.java37 static float[] testarray; field in class:NewModelByteBufferWavetableModelByteBufferFloat
49 testarray = new float[1024];
53 testarray[i] = (float)Math.sin(10*ii*2*Math.PI);
54 testarray[i] += (float)Math.sin(1.731 + 2*ii*2*Math.PI);
55 testarray[i] += (float)Math.sin(0.231 + 6.3*ii*2*Math.PI);
56 testarray[i] *= 0.3;
58 test_byte_array = new byte[testarray.length*2];
59 AudioFloatConverter.getConverter(format).toByteArray(testarray, test_byte_array);
62 byte[] test_byte_array2 = new byte[testarray.length*3];
64 test_byte_array_8ext = new byte[testarray
[all...]
H A DNewModelByteBufferWavetableModelByteBufferAudioFormatFloat.java37 static float[] testarray; field in class:NewModelByteBufferWavetableModelByteBufferAudioFormatFloat
49 testarray = new float[1024];
53 testarray[i] = (float)Math.sin(10*ii*2*Math.PI);
54 testarray[i] += (float)Math.sin(1.731 + 2*ii*2*Math.PI);
55 testarray[i] += (float)Math.sin(0.231 + 6.3*ii*2*Math.PI);
56 testarray[i] *= 0.3;
58 test_byte_array = new byte[testarray.length*2];
59 AudioFloatConverter.getConverter(format).toByteArray(testarray, test_byte_array);
62 byte[] test_byte_array2 = new byte[testarray.length*3];
64 test_byte_array_8ext = new byte[testarray
[all...]
H A DNewModelByteBufferWavetableModelByteBufferAudioFormat.java37 static float[] testarray; field in class:NewModelByteBufferWavetableModelByteBufferAudioFormat
49 testarray = new float[1024];
53 testarray[i] = (float)Math.sin(10*ii*2*Math.PI);
54 testarray[i] += (float)Math.sin(1.731 + 2*ii*2*Math.PI);
55 testarray[i] += (float)Math.sin(0.231 + 6.3*ii*2*Math.PI);
56 testarray[i] *= 0.3;
58 test_byte_array = new byte[testarray.length*2];
59 AudioFloatConverter.getConverter(format).toByteArray(testarray, test_byte_array);
62 byte[] test_byte_array2 = new byte[testarray.length*3];
64 test_byte_array_8ext = new byte[testarray
[all...]
H A DNewModelByteBufferWavetableModelByteBuffer.java37 static float[] testarray; field in class:NewModelByteBufferWavetableModelByteBuffer
49 testarray = new float[1024];
53 testarray[i] = (float)Math.sin(10*ii*2*Math.PI);
54 testarray[i] += (float)Math.sin(1.731 + 2*ii*2*Math.PI);
55 testarray[i] += (float)Math.sin(0.231 + 6.3*ii*2*Math.PI);
56 testarray[i] *= 0.3;
58 test_byte_array = new byte[testarray.length*2];
59 AudioFloatConverter.getConverter(format).toByteArray(testarray, test_byte_array);
62 byte[] test_byte_array2 = new byte[testarray.length*3];
64 test_byte_array_8ext = new byte[testarray
[all...]
H A DGetPitchCorrection.java37 static float[] testarray; field in class:GetPitchCorrection
49 testarray = new float[1024];
53 testarray[i] = (float)Math.sin(10*ii*2*Math.PI);
54 testarray[i] += (float)Math.sin(1.731 + 2*ii*2*Math.PI);
55 testarray[i] += (float)Math.sin(0.231 + 6.3*ii*2*Math.PI);
56 testarray[i] *= 0.3;
58 test_byte_array = new byte[testarray.length*2];
59 AudioFloatConverter.getConverter(format).toByteArray(testarray, test_byte_array);
62 byte[] test_byte_array2 = new byte[testarray.length*3];
64 test_byte_array_8ext = new byte[testarray
[all...]
H A DOpen.java37 static float[] testarray; field in class:Open
49 testarray = new float[1024];
53 testarray[i] = (float)Math.sin(10*ii*2*Math.PI);
54 testarray[i] += (float)Math.sin(1.731 + 2*ii*2*Math.PI);
55 testarray[i] += (float)Math.sin(0.231 + 6.3*ii*2*Math.PI);
56 testarray[i] *= 0.3;
58 test_byte_array = new byte[testarray.length*2];
59 AudioFloatConverter.getConverter(format).toByteArray(testarray, test_byte_array);
62 byte[] test_byte_array2 = new byte[testarray.length*3];
64 test_byte_array_8ext = new byte[testarray
[all...]
H A DSet8BitExtensionBuffer.java37 static float[] testarray; field in class:Set8BitExtensionBuffer
49 testarray = new float[1024];
53 testarray[i] = (float)Math.sin(10*ii*2*Math.PI);
54 testarray[i] += (float)Math.sin(1.731 + 2*ii*2*Math.PI);
55 testarray[i] += (float)Math.sin(0.231 + 6.3*ii*2*Math.PI);
56 testarray[i] *= 0.3;
58 test_byte_array = new byte[testarray.length*2];
59 AudioFloatConverter.getConverter(format).toByteArray(testarray, test_byte_array);
62 byte[] test_byte_array2 = new byte[testarray.length*3];
64 test_byte_array_8ext = new byte[testarray
[all...]
H A DGetChannels.java37 static float[] testarray; field in class:GetChannels
49 testarray = new float[1024];
53 testarray[i] = (float)Math.sin(10*ii*2*Math.PI);
54 testarray[i] += (float)Math.sin(1.731 + 2*ii*2*Math.PI);
55 testarray[i] += (float)Math.sin(0.231 + 6.3*ii*2*Math.PI);
56 testarray[i] *= 0.3;
58 test_byte_array = new byte[testarray.length*2];
59 AudioFloatConverter.getConverter(format).toByteArray(testarray, test_byte_array);
62 byte[] test_byte_array2 = new byte[testarray.length*3];
64 test_byte_array_8ext = new byte[testarray
[all...]
H A DOpenStream.java42 static float[] testarray; field in class:OpenStream
67 testarray = new float[1024];
71 testarray[i] = (float) Math.sin(10 * ii * 2 * Math.PI);
72 testarray[i] += (float) Math.sin(1.731 + 2 * ii * 2 * Math.PI);
73 testarray[i] += (float) Math.sin(0.231 + 6.3 * ii * 2 * Math.PI);
74 testarray[i] *= 0.3;
76 test_byte_array = new byte[testarray.length * 2];
77 AudioFloatConverter.getConverter(format).toByteArray(testarray,
81 byte[] test_byte_array2 = new byte[testarray.length * 3];
83 test_byte_array_8ext = new byte[testarray
[all...]
/openjdk10/jdk/test/javax/sound/midi/Gervill/ModelByteBuffer/
H A DNewModelByteBufferByteArrayIntInt.java40 static float[] testarray; field in class:NewModelByteBufferByteArrayIntInt
46 testarray = new float[1024];
50 testarray[i] = (float)Math.sin(10*ii*2*Math.PI);
51 testarray[i] += (float)Math.sin(1.731 + 2*ii*2*Math.PI);
52 testarray[i] += (float)Math.sin(0.231 + 6.3*ii*2*Math.PI);
53 testarray[i] *= 0.3;
55 test_byte_array = new byte[testarray.length*2];
56 AudioFloatConverter.getConverter(format).toByteArray(testarray, test_byte_array);
H A DNewModelByteBufferFile.java40 static float[] testarray; field in class:NewModelByteBufferFile
46 testarray = new float[1024];
50 testarray[i] = (float)Math.sin(10*ii*2*Math.PI);
51 testarray[i] += (float)Math.sin(1.731 + 2*ii*2*Math.PI);
52 testarray[i] += (float)Math.sin(0.231 + 6.3*ii*2*Math.PI);
53 testarray[i] *= 0.3;
55 test_byte_array = new byte[testarray.length*2];
56 AudioFloatConverter.getConverter(format).toByteArray(testarray, test_byte_array);
H A DNewModelByteBufferByteArray.java40 static float[] testarray; field in class:NewModelByteBufferByteArray
46 testarray = new float[1024];
50 testarray[i] = (float)Math.sin(10*ii*2*Math.PI);
51 testarray[i] += (float)Math.sin(1.731 + 2*ii*2*Math.PI);
52 testarray[i] += (float)Math.sin(0.231 + 6.3*ii*2*Math.PI);
53 testarray[i] *= 0.3;
55 test_byte_array = new byte[testarray.length*2];
56 AudioFloatConverter.getConverter(format).toByteArray(testarray, test_byte_array);
H A DGetRoot.java40 static float[] testarray; field in class:GetRoot
46 testarray = new float[1024];
50 testarray[i] = (float)Math.sin(10*ii*2*Math.PI);
51 testarray[i] += (float)Math.sin(1.731 + 2*ii*2*Math.PI);
52 testarray[i] += (float)Math.sin(0.231 + 6.3*ii*2*Math.PI);
53 testarray[i] *= 0.3;
55 test_byte_array = new byte[testarray.length*2];
56 AudioFloatConverter.getConverter(format).toByteArray(testarray, test_byte_array);
H A DLoad.java40 static float[] testarray; field in class:Load
46 testarray = new float[1024];
50 testarray[i] = (float)Math.sin(10*ii*2*Math.PI);
51 testarray[i] += (float)Math.sin(1.731 + 2*ii*2*Math.PI);
52 testarray[i] += (float)Math.sin(0.231 + 6.3*ii*2*Math.PI);
53 testarray[i] *= 0.3;
55 test_byte_array = new byte[testarray.length*2];
56 AudioFloatConverter.getConverter(format).toByteArray(testarray, test_byte_array);
H A DSubbufferLongLongBoolean.java40 static float[] testarray; field in class:SubbufferLongLongBoolean
46 testarray = new float[1024];
50 testarray[i] = (float)Math.sin(10*ii*2*Math.PI);
51 testarray[i] += (float)Math.sin(1.731 + 2*ii*2*Math.PI);
52 testarray[i] += (float)Math.sin(0.231 + 6.3*ii*2*Math.PI);
53 testarray[i] *= 0.3;
55 test_byte_array = new byte[testarray.length*2];
56 AudioFloatConverter.getConverter(format).toByteArray(testarray, test_byte_array);
H A DSubbufferLongLong.java40 static float[] testarray; field in class:SubbufferLongLong
46 testarray = new float[1024];
50 testarray[i] = (float)Math.sin(10*ii*2*Math.PI);
51 testarray[i] += (float)Math.sin(1.731 + 2*ii*2*Math.PI);
52 testarray[i] += (float)Math.sin(0.231 + 6.3*ii*2*Math.PI);
53 testarray[i] *= 0.3;
55 test_byte_array = new byte[testarray.length*2];
56 AudioFloatConverter.getConverter(format).toByteArray(testarray, test_byte_array);
H A DSubbufferLong.java40 static float[] testarray; field in class:SubbufferLong
46 testarray = new float[1024];
50 testarray[i] = (float)Math.sin(10*ii*2*Math.PI);
51 testarray[i] += (float)Math.sin(1.731 + 2*ii*2*Math.PI);
52 testarray[i] += (float)Math.sin(0.231 + 6.3*ii*2*Math.PI);
53 testarray[i] *= 0.3;
55 test_byte_array = new byte[testarray.length*2];
56 AudioFloatConverter.getConverter(format).toByteArray(testarray, test_byte_array);
H A DUnload.java40 static float[] testarray; field in class:Unload
46 testarray = new float[1024];
50 testarray[i] = (float)Math.sin(10*ii*2*Math.PI);
51 testarray[i] += (float)Math.sin(1.731 + 2*ii*2*Math.PI);
52 testarray[i] += (float)Math.sin(0.231 + 6.3*ii*2*Math.PI);
53 testarray[i] *= 0.3;
55 test_byte_array = new byte[testarray.length*2];
56 AudioFloatConverter.getConverter(format).toByteArray(testarray, test_byte_array);
H A DNewModelByteBufferFileLongLong.java40 static float[] testarray; field in class:NewModelByteBufferFileLongLong
46 testarray = new float[1024];
50 testarray[i] = (float)Math.sin(10*ii*2*Math.PI);
51 testarray[i] += (float)Math.sin(1.731 + 2*ii*2*Math.PI);
52 testarray[i] += (float)Math.sin(0.231 + 6.3*ii*2*Math.PI);
53 testarray[i] *= 0.3;
55 test_byte_array = new byte[testarray.length*2];
56 AudioFloatConverter.getConverter(format).toByteArray(testarray, test_byte_array);
H A DLoadAll.java42 static float[] testarray; field in class:LoadAll
48 testarray = new float[1024];
52 testarray[i] = (float)Math.sin(10*ii*2*Math.PI);
53 testarray[i] += (float)Math.sin(1.731 + 2*ii*2*Math.PI);
54 testarray[i] += (float)Math.sin(0.231 + 6.3*ii*2*Math.PI);
55 testarray[i] *= 0.3;
57 test_byte_array = new byte[testarray.length*2];
58 AudioFloatConverter.getConverter(format).toByteArray(testarray, test_byte_array);
/openjdk10/jdk/test/javax/sound/midi/Gervill/AudioFloatConverter/
H A DToFloatArray.java36 float[] testarray = new float[1024];
40 testarray[i] = (float)Math.sin(10*ii*2*Math.PI);
41 testarray[i] += (float)Math.sin(1.731 + 2*ii*2*Math.PI);
42 testarray[i] += (float)Math.sin(0.231 + 6.3*ii*2*Math.PI);
43 testarray[i] *= 0.3;
53 byte[] buff = new byte[testarray.length * frm.getFrameSize()];
54 float[] testarray2 = new float[testarray.length];
56 conv.toByteArray(testarray, buff);
59 if(Math.abs(testarray[i] - testarray2[i]) > 0.05)
69 byte[] buff = new byte[testarray
[all...]

Completed in 97 milliseconds

12