org.tritonus.share.sampled.file
Class TAudioFileFormat

java.lang.Object
  extended byjavax.sound.sampled.AudioFileFormat
      extended byorg.tritonus.share.sampled.file.TAudioFileFormat

public class TAudioFileFormat
extends AudioFileFormat

This class is just to have a public constructor taking the number of bytes of the whole file. The public constructor of AudioFileFormat doesn't take this parameter, the one who takes it is protected.

Author:
Matthias Pfisterer

Nested Class Summary
 
Nested classes inherited from class javax.sound.sampled.AudioFileFormat
AudioFileFormat.Type
 
Constructor Summary
TAudioFileFormat(AudioFileFormat.Type type, AudioFormat audioFormat, int nLengthInFrames, int nLengthInBytes)
           
TAudioFileFormat(AudioFileFormat.Type type, AudioFormat audioFormat, int nLengthInFrames, int nLengthInBytes, Map<String,Object> properties)
           
 
Method Summary
 Map<String,Object> properties()
           
protected  void setProperty(String key, Object value)
           
 
Methods inherited from class javax.sound.sampled.AudioFileFormat
getByteLength, getFormat, getFrameLength, getProperty, getType, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TAudioFileFormat

public TAudioFileFormat(AudioFileFormat.Type type,
                        AudioFormat audioFormat,
                        int nLengthInFrames,
                        int nLengthInBytes)

TAudioFileFormat

public TAudioFileFormat(AudioFileFormat.Type type,
                        AudioFormat audioFormat,
                        int nLengthInFrames,
                        int nLengthInBytes,
                        Map<String,Object> properties)
Method Detail

properties

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

setProperty

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