org.tritonus.share.sampled
Class TAudioFormat

java.lang.Object
  extended by javax.sound.sampled.AudioFormat
      extended by org.tritonus.share.sampled.TAudioFormat

public class TAudioFormat
extends AudioFormat


Nested Class Summary
 
Nested classes/interfaces inherited from class javax.sound.sampled.AudioFormat
AudioFormat.Encoding
 
Field Summary
 
Fields inherited from class javax.sound.sampled.AudioFormat
bigEndian, encoding, frameRate, frameSize, channels, sampleRate, sampleSizeInBits
 
Constructor Summary
TAudioFormat(AudioFormat.Encoding encoding, float sampleRate, int sampleSizeInBits, int channels, int frameSize, float frameRate, boolean bigEndian, Map<String,Object> properties)
           
TAudioFormat(AudioFormat format)
          Create an instance of TAudioFormat as a copy of the supplied audio format.
TAudioFormat(AudioFormat format, Map<String,Object> properties)
          Create an instance of TAudioFormat as a copy of the supplied audio format, adding the given properties to any properties supplied by format.
TAudioFormat(float sampleRate, int sampleSizeInBits, int channels, boolean signed, boolean bigEndian, Map<String,Object> properties)
           
 
Method Summary
 Object getProperty(String key)
           
 Map<String,Object> properties()
           
protected  void setProperty(String key, Object value)
           
 
Methods inherited from class javax.sound.sampled.AudioFormat
getEncoding, getFrameRate, getFrameSize, getChannels, getSampleRate, getSampleSizeInBits, isBigEndian, matches, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TAudioFormat

public TAudioFormat(AudioFormat.Encoding encoding,
                    float sampleRate,
                    int sampleSizeInBits,
                    int channels,
                    int frameSize,
                    float frameRate,
                    boolean bigEndian,
                    Map<String,Object> properties)

TAudioFormat

public TAudioFormat(AudioFormat format)
Create an instance of TAudioFormat as a copy of the supplied audio format.

Parameters:
format - the instance to copy

TAudioFormat

public TAudioFormat(AudioFormat format,
                    Map<String,Object> properties)
Create an instance of TAudioFormat as a copy of the supplied audio format, adding the given properties to any properties supplied by format. Duplicate properties in the supplied properties will overwrite the ones in format.

Parameters:
format - the instance to copy
properties - properties to be added to this TAudioFormat

TAudioFormat

public TAudioFormat(float sampleRate,
                    int sampleSizeInBits,
                    int channels,
                    boolean signed,
                    boolean bigEndian,
                    Map<String,Object> properties)
Method Detail

properties

public Map<String,Object> properties()
Overrides:
properties in class AudioFormat

getProperty

public Object getProperty(String key)
Overrides:
getProperty in class AudioFormat

setProperty

protected void setProperty(String key,
                           Object value)
Overrides:
setProperty in class AudioFormat


Copyright © 2012. All Rights Reserved.