org.kc7bfi.jflac.sound.spi
Class FlacAudioFormat

java.lang.Object
  extended by javax.sound.sampled.AudioFormat
      extended by org.kc7bfi.jflac.sound.spi.FlacAudioFormat

public class FlacAudioFormat
extends javax.sound.sampled.AudioFormat

An AudioFormat instance wrapping a FLAC StreamInfo object. With Java 5.0 style properties support.


Nested Class Summary
 
Nested classes/interfaces inherited from class javax.sound.sampled.AudioFormat
javax.sound.sampled.AudioFormat.Encoding
 
Field Summary
static java.lang.String KEY_BLOCKSIZE_MAX
          Property key for maximum block size.
static java.lang.String KEY_BLOCKSIZE_MIN
          Property key for minimum block size.
static java.lang.String KEY_FRAMESIZE_MAX
          Property key for maximum frame size.
static java.lang.String KEY_FRAMESIZE_MIN
          Property key for minimum frame size.
 
Constructor Summary
FlacAudioFormat(StreamInfo streamInfo)
           
 
Method Summary
 java.lang.Object getProperty(java.lang.String key)
          Java 5.0 compatible method to get a property.
 java.util.Map properties()
          Java 5.0 compatible method to get the full map of properties.
 
Methods inherited from class javax.sound.sampled.AudioFormat
getChannels, getEncoding, getFrameRate, getFrameSize, getSampleRate, getSampleSizeInBits, isBigEndian, matches, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

KEY_FRAMESIZE_MIN

public static final java.lang.String KEY_FRAMESIZE_MIN
Property key for minimum frame size. The value is of type Integer and gives the minimum size of encoded frames in bytes.

See Also:
Constant Field Values

KEY_FRAMESIZE_MAX

public static final java.lang.String KEY_FRAMESIZE_MAX
Property key for maximum frame size. The value is of type Integer and gives the maximum size of encoded frames in bytes.

See Also:
Constant Field Values

KEY_BLOCKSIZE_MIN

public static final java.lang.String KEY_BLOCKSIZE_MIN
Property key for minimum block size. The value is of type Integer and gives the minimum size of decoded frames in bytes.

See Also:
Constant Field Values

KEY_BLOCKSIZE_MAX

public static final java.lang.String KEY_BLOCKSIZE_MAX
Property key for maximum block size. The value is of type Integer and gives the maximum size of decoded frames in bytes.

See Also:
Constant Field Values
Constructor Detail

FlacAudioFormat

public FlacAudioFormat(StreamInfo streamInfo)
Method Detail

properties

public java.util.Map properties()
Java 5.0 compatible method to get the full map of properties. The properties use the KEY_ keys defined in this class.

Overrides:
properties in class javax.sound.sampled.AudioFormat

getProperty

public java.lang.Object getProperty(java.lang.String key)
Java 5.0 compatible method to get a property. As key use the KEY_ constants defined in this class.

Overrides:
getProperty in class javax.sound.sampled.AudioFormat