org.tritonus.sampled.convert
Class SampleRateConversionProvider.SRCAudioFormat

java.lang.Object
  extended by javax.sound.sampled.AudioFormat
      extended by 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)


Nested Class Summary
 
Nested classes/interfaces inherited from class javax.sound.sampled.AudioFormat
AudioFormat.Encoding
 
Constructor Summary
SampleRateConversionProvider.SRCAudioFormat(AudioFormat targetFormat)
           
 
Method Summary
 float getFrameRate()
           
 float getSampleRate()
           
 void setSampleRate(float sr)
           
 
Methods inherited from class javax.sound.sampled.AudioFormat
getChannels, getEncoding, getFrameSize, getProperty, getSampleSizeInBits, isBigEndian, matches, properties, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SampleRateConversionProvider.SRCAudioFormat

public SampleRateConversionProvider.SRCAudioFormat(AudioFormat targetFormat)
Method Detail

setSampleRate

public void setSampleRate(float sr)

getSampleRate

public float getSampleRate()
Overrides:
getSampleRate in class AudioFormat

getFrameRate

public float getFrameRate()
Overrides:
getFrameRate in class AudioFormat