Searched refs:wavetable (Results 1 - 13 of 13) sorted by relevance

/openjdk7/jdk/test/javax/sound/midi/Gervill/ModelByteBufferWavetable/
H A DGetAttenuation.java87 ModelByteBufferWavetable wavetable = new ModelByteBufferWavetable(buffer,format);
88 wavetable.setAttenuation(10f);
89 if(wavetable.getAttenuation() != 10f)
90 throw new RuntimeException("wavetable.getAttenuation() not 10!");
91 wavetable.setAttenuation(20f);
92 if(wavetable.getAttenuation() != 20f)
93 throw new RuntimeException("wavetable.getAttenuation() not 20!");
H A DGetLoopLength.java87 ModelByteBufferWavetable wavetable = new ModelByteBufferWavetable(buffer,format);
88 wavetable.setLoopLength(10f);
89 if(wavetable.getLoopLength() != 10f)
90 throw new RuntimeException("wavetable.getLoopLength() not 10!");
91 wavetable.setLoopLength(20f);
92 if(wavetable.getLoopLength() != 20f)
93 throw new RuntimeException("wavetable.getLoopLength() not 20!");
H A DGetLoopStart.java87 ModelByteBufferWavetable wavetable = new ModelByteBufferWavetable(buffer,format);
88 wavetable.setLoopStart(10f);
89 if(wavetable.getLoopStart() != 10f)
90 throw new RuntimeException("wavetable.getLoopStart() not 10!");
91 wavetable.setLoopStart(20f);
92 if(wavetable.getLoopStart() != 20f)
93 throw new RuntimeException("wavetable.getLoopStart() not 20!");
H A DGetPitchCorrection.java87 ModelByteBufferWavetable wavetable = new ModelByteBufferWavetable(buffer,format);
88 wavetable.setPitchcorrection(10f);
89 if(wavetable.getPitchcorrection() != 10f)
90 throw new RuntimeException("wavetable.getPitchcorrection() not 10!");
91 wavetable.setPitchcorrection(20f);
92 if(wavetable.getPitchcorrection() != 20f)
93 throw new RuntimeException("wavetable.getPitchcorrection() not 20!");
H A DSetLoopType.java87 ModelByteBufferWavetable wavetable = new ModelByteBufferWavetable(buffer,format);
88 wavetable.setLoopType(1);
89 if(wavetable.getLoopType() != 1)
90 throw new RuntimeException("wavetable.getLoopType() not 1!");
91 wavetable.setLoopType(2);
92 if(wavetable.getLoopType() != 2)
93 throw new RuntimeException("wavetable.getLoopType() not 2!");
H A DNewModelByteBufferWavetableModelByteBufferFloat.java87 ModelByteBufferWavetable wavetable = new ModelByteBufferWavetable(buffer,format,10f);
88 if(wavetable.getBuffer() != buffer)
89 throw new RuntimeException("wavetable.getBuffer() incorrect!");
90 if(!wavetable.getFormat().matches(format))
91 throw new RuntimeException("wavetable.getFormat() incorrect!");
92 if(wavetable.getPitchcorrection() != 10f)
93 throw new RuntimeException("wavetable.getPitchcorrection() not 10!");
H A DSet8BitExtensionBuffer.java99 ModelByteBufferWavetable wavetable = new ModelByteBufferWavetable(buffer16_8,format,10f);
102 wavetable.openStream().read(f1);
103 wavetable.set8BitExtensionBuffer(buffer8);
104 if(wavetable.get8BitExtensionBuffer() != buffer8)
105 throw new RuntimeException("wavetable.get8BitExtensionBuffer() incorrect!");
106 wavetable.openStream().read(f2);
H A DNewModelByteBufferWavetableModelByteBuffer.java87 ModelByteBufferWavetable wavetable = new ModelByteBufferWavetable(buffer_wave);
88 if(wavetable.getBuffer() != buffer_wave)
89 throw new RuntimeException("wavetable.getBuffer() incorrect!");
90 if(!wavetable.getFormat().matches(format))
91 throw new RuntimeException("wavetable.getFormat() incorrect!");
H A DNewModelByteBufferWavetableModelByteBufferAudioFormat.java87 ModelByteBufferWavetable wavetable = new ModelByteBufferWavetable(buffer,format);
88 if(wavetable.getBuffer() != buffer)
89 throw new RuntimeException("wavetable.getBuffer() incorrect!");
90 if(wavetable.getFormat() != format)
91 throw new RuntimeException("wavetable.getFormat() incorrect!");
H A DNewModelByteBufferWavetableModelByteBufferAudioFormatFloat.java87 ModelByteBufferWavetable wavetable = new ModelByteBufferWavetable(buffer,format);
88 if(wavetable.getBuffer() != buffer)
89 throw new RuntimeException("wavetable.getBuffer() incorrect!");
90 if(!wavetable.getFormat().matches(format))
91 throw new RuntimeException("wavetable.getFormat() incorrect!");
H A DGetChannels.java89 ModelByteBufferWavetable wavetable = new ModelByteBufferWavetable(buffer,format1,10f);
90 if(wavetable.getChannels() != 1)
91 throw new RuntimeException("wavetable.getChannels() not 1!");
92 wavetable = new ModelByteBufferWavetable(buffer,format2,10f);
93 if(wavetable.getChannels() != 2)
94 throw new RuntimeException("wavetable.getChannels() not 2!");
H A DOpenStream.java114 public static void testOpenStream(ModelByteBufferWavetable wavetable) argument
116 AudioFloatInputStream ais = wavetable.openStream();
117 long frames = wavetable.getBuffer().capacity()
118 / wavetable.getFormat().getFrameSize();
H A DOpen.java87 ModelByteBufferWavetable wavetable = new ModelByteBufferWavetable(buffer,format);
88 if(wavetable.open(44100) != null)
89 throw new RuntimeException("wavetable.open(44100) doesn't return null!");

Completed in 35 milliseconds