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 AudioFormat

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

Author:
Florian Bomers

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.sound.sampled.AudioFormat
AudioFormat.Encoding
 
Field Summary
static String KEY_BLOCKSIZE_MAX
          Property key for maximum block size.
static String KEY_BLOCKSIZE_MIN
          Property key for minimum block size.
static String KEY_FRAMESIZE_MAX
          Property key for maximum frame size.
static String KEY_FRAMESIZE_MIN
          Property key for minimum frame size.
 
Fields inherited from class javax.sound.sampled.AudioFormat
bigEndian, channels, encoding, frameRate, frameSize, sampleRate, sampleSizeInBits
 
Constructor Summary
FlacAudioFormat(StreamInfo streamInfo)
           
 
Method Summary
 Object getProperty(String key)
          Java 5.0 compatible method to get a property.
 Map<String,Object> 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

KEY_FRAMESIZE_MIN

public static final 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 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 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 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 Map<String,Object> 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 AudioFormat

getProperty

public Object getProperty(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 AudioFormat


Copyright © 2004-2011. All Rights Reserved.