org.tritonus.sampled.convert
Class SampleRateConversionProvider.SRCAudioFormat
java.lang.Object
javax.sound.sampled.AudioFormat
org.tritonus.sampled.convert.SampleRateConversionProvider.SRCAudioFormat
- Enclosing class:
- SampleRateConversionProvider
public static class SampleRateConversionProvider.SRCAudioFormat
- extends AudioFormat
Obviously, this class is used to be able to set the frame rate/sample
rate after the AudioFormat object has been created. It assumes the PCM
case where the frame rate is always in sync with the sample rate. (MP)
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SampleRateConversionProvider.SRCAudioFormat
public SampleRateConversionProvider.SRCAudioFormat(AudioFormat targetFormat)
setSampleRate
public void setSampleRate(float sr)
getSampleRate
public float getSampleRate()
- Overrides:
getSampleRate in class AudioFormat
getFrameRate
public float getFrameRate()
- Overrides:
getFrameRate in class AudioFormat