Searched refs:getSampleRate (Results 1 - 25 of 34) sorted by relevance

12

/openjdk7/jdk/src/share/classes/javax/sound/sampled/
H A DAudioFormat.java287 public float getSampleRate() { method in class:AudioFormat
364 * @see #getSampleRate()
452 && (format.getSampleRate() == (float)AudioSystem.NOT_SPECIFIED
453 || format.getSampleRate() == getSampleRate())
482 if (getSampleRate() == (float) AudioSystem.NOT_SPECIFIED) {
485 sSampleRate = "" + getSampleRate() + " Hz, ";
517 if (Math.abs(getSampleRate() - getFrameRate()) > 0.00001) {
/openjdk7/jdk/src/share/classes/com/sun/media/sound/
H A DToolkit.java169 if (format.getSampleRate() <= 0) {
171 +((format.getSampleRate()==-1)?
172 "NOT_SPECIFIED":String.valueOf(format.getSampleRate())));
198 || (format.getSampleRate() <= 0)
219 af.getSampleRate(),
223 af.getSampleRate(),
H A DAlawCodec.java147 sourceFormat.getSampleRate(),
151 sourceFormat.getSampleRate(),
158 sourceFormat.getSampleRate(),
162 sourceFormat.getSampleRate(),
221 inputFormat.getSampleRate(),
225 inputFormat.getSampleRate(),
232 inputFormat.getSampleRate(),
236 inputFormat.getSampleRate(),
240 inputFormat.getSampleRate(),
244 inputFormat.getSampleRate(),
[all...]
H A DUlawCodec.java136 sourceFormat.getSampleRate(),
140 sourceFormat.getSampleRate(),
145 sourceFormat.getSampleRate(),
149 sourceFormat.getSampleRate(),
207 inputFormat.getSampleRate(),
211 inputFormat.getSampleRate(),
218 inputFormat.getSampleRate(),
222 inputFormat.getSampleRate(),
227 inputFormat.getSampleRate(),
231 inputFormat.getSampleRate(),
[all...]
H A DPCMtoPCMCodec.java119 sourceFormat.getSampleRate(),
195 inputFormat.getSampleRate(),
207 inputFormat.getSampleRate(),
221 inputFormat.getSampleRate(),
229 inputFormat.getSampleRate(),
237 inputFormat.getSampleRate(),
249 inputFormat.getSampleRate(),
257 inputFormat.getSampleRate(),
265 inputFormat.getSampleRate(),
277 inputFormat.getSampleRate(),
[all...]
H A DAudioFloatFormatConverter.java136 .getSampleRate(), format.getSampleSizeInBits(),
272 .getSampleRate(), sourceFormat.getSampleSizeInBits(),
274 format.getSampleRate(), sourceFormat.isBigEndian());
297 pitch[0] = sourceFormat.getSampleRate() / format.getSampleRate();
482 float samplerate = format.getSampleRate();
513 if (Math.abs(targetFormat.getSampleRate()
514 - sourceStream.getFormat().getSampleRate()) > 0.000001)
H A DWaveFloatFileWriter.java74 fmt_chunk.writeUnsignedInt((int) format.getSampleRate());
115 .getSampleRate(), format.getSampleSizeInBits(), format
H A DAiffFileWriter.java204 streamFormat.getSampleRate(),
292 float sampleFramesPerSecond = format.getSampleRate();
317 streamFormat.getSampleRate(),
338 streamFormat.getSampleRate(),
H A DSF2Sample.java189 public long getSampleRate() { method in class:SF2Sample
H A DWaveFileWriter.java208 streamFormat.getSampleRate(),
274 int sampleRate = (int) audioFormat.getSampleRate();
306 audioStreamFormat.getSampleRate(),
323 audioStreamFormat.getSampleRate(),
H A DAuFileWriter.java180 streamFormat.getSampleRate(),
219 int sampleRate = (int)format.getSampleRate();
256 audioStreamFormat.getSampleRate(),
H A DSoftMixingClip.java200 if (Math.abs(format.getSampleRate() - outputformat.getSampleRate()) > 0.000001)
282 .getSampleRate()));
417 .getSampleRate()) / 1000000.0)));
454 .getSampleRate()));
H A DSoftMixingSourceDataLine.java370 if (Math.abs(format.getSampleRate()
371 - outputformat.getSampleRate()) > 0.000001)
448 .getSampleRate()));
H A DDirectAudioDevice.java134 format.getSampleRate(), bits, format.getChannels(),
135 format.getFrameSize(), format.getSampleRate(),
141 format.getSampleRate(), bits, format.getChannels(),
142 format.getFrameSize(), format.getSampleRate(),
149 format.getSampleRate(), bits,
152 format.getSampleRate(),
310 format.getSampleRate(), format.getSampleSizeInBits(), format.getChannels(),
316 format.getSampleRate(), format.getSampleSizeInBits(), format.getChannels(),
502 hardwareFormat.getSampleRate(),
H A DModelAbstractOscillator.java106 public float getSampleRate() { method in class:ModelAbstractOscillator
H A DSoftMixingDataLine.java99 .getSampleRate(), sourceFormat.getSampleSizeInBits(),
101 format.getSampleRate(), sourceFormat.isBigEndian());
124 pitch[0] = sourceFormat.getSampleRate() / format.getSampleRate();
H A DSoftMixingMainMixer.java121 int buffersize = (int) (mixer.getFormat().getSampleRate() / mixer
135 float samplerate = mixer.getFormat().getSampleRate();
H A DSoftMixingMixer.java384 if(format.getSampleRate() == AudioSystem.NOT_SPECIFIED ||
385 format.getSampleRate() == 48000.0)
392 float ideal_rate = format.getSampleRate();
/openjdk7/jdk/test/javax/sound/midi/Gervill/SoftSynthesizer/
H A DGetPropertyInfo.java69 assertTrue(Math.abs(format.getSampleRate() - 8000) < 0.001);
82 assertTrue(Math.abs(format.getSampleRate() - 9000) < 0.001);
96 assertTrue(Math.abs(format.getSampleRate() - 44100) < 0.001);
H A DDummySourceDataLine.java143 .getSampleRate()));
186 .getSampleRate()));
/openjdk7/jdk/test/javax/sound/midi/Gervill/SoftChannel/
H A DSoftTestUtils.java44 float fr = 440/format.getSampleRate();
54 sample.setSampleRate((long) format.getSampleRate());
/openjdk7/jdk/test/javax/sound/midi/Gervill/SoftReceiver/
H A DSoftTestUtils.java44 float fr = 440/format.getSampleRate();
54 sample.setSampleRate((long) format.getSampleRate());
/openjdk7/jdk/test/javax/sound/midi/Gervill/SoftAudioSynthesizer/
H A DDummySourceDataLine.java143 .getSampleRate()));
186 .getSampleRate()));
/openjdk7/jdk/test/javax/sound/midi/Gervill/SoftFilter/
H A DTestProcessAudio.java43 SoftFilter filter = new SoftFilter(format.getSampleRate());
/openjdk7/jdk/test/javax/sound/sampled/FileWriter/
H A DAlawEncoderSync.java62 pcmBuffer = new byte[STREAM_LENGTH * (int)pcmFormat.getSampleRate()

Completed in 1367 milliseconds

12