org.tritonus.sampled.convert
Class SampleRateConversionProvider.SRCAudioFormat

java.lang.Object
  extended byjavax.sound.sampled.AudioFormat
      extended byorg.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 inherited from class javax.sound.sampled.AudioFormat
AudioFormat.Encoding
 
Field Summary
 
Fields inherited from class javax.sound.sampled.AudioFormat
bigEndian, channels, encoding, frameRate, frameSize, sampleSizeInBits
 
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, setProperty, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, 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