com.groovemanager.spi.floatEncoding
Class FloatAudioFormat

java.lang.Object
  extended by javax.sound.sampled.AudioFormat
      extended by com.groovemanager.spi.floatEncoding.FloatAudioFormat

public class FloatAudioFormat
extends javax.sound.sampled.AudioFormat

This class provides some easier constructors for AdioFormats using the PCM_FLOAT encoding

Author:
Manu Robledo

Nested Class Summary
static class FloatAudioFormat.Encoding
          PCM_FLOAT encoding
 
Field Summary
(package private)  java.util.Map properties
          The properties Map
 
Fields inherited from class javax.sound.sampled.AudioFormat
bigEndian, channels, encoding, frameRate, frameSize, sampleRate, sampleSizeInBits
 
Constructor Summary
  FloatAudioFormat(float sampleRate, boolean isDouble, int channels, boolean bigEndian)
          Construct a new FloatAudioFormat
  FloatAudioFormat(float sampleRate, boolean isDouble, int channels, boolean bigEndian, java.util.Map properties)
          Construct a new FloatAudioFormat
private FloatAudioFormat(float sampleRate, int sampleSizeInBits, int channels, boolean bigEndian)
          Construct a new FloatAudioFormat
private FloatAudioFormat(float sampleRate, int sampleSizeInBits, int channels, boolean bigEndian, java.util.Map properties)
          Construct a new FloatAudioFormat
 
Method Summary
 java.lang.Object getProperty(java.lang.String key)
           
 java.util.Map 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

properties

java.util.Map properties
The properties Map

Constructor Detail

FloatAudioFormat

public FloatAudioFormat(float sampleRate,
                        boolean isDouble,
                        int channels,
                        boolean bigEndian)
Construct a new FloatAudioFormat

Parameters:
sampleRate - The sample rate of the format in Hz
isDouble - true, if the floating point samples are stored in double precidion (64 Bit), false otherwise
channels - The number of channels of this format
bigEndian - true, if the data is aligned in big endian, false otherwise

FloatAudioFormat

public FloatAudioFormat(float sampleRate,
                        boolean isDouble,
                        int channels,
                        boolean bigEndian,
                        java.util.Map properties)
Construct a new FloatAudioFormat

Parameters:
sampleRate - The sample rate of the format in Hz
isDouble - true, if the floating point samples are stored in double precidion (64 Bit), false otherwise
channels - The number of channels of this format
bigEndian - true, if the data is aligned in big endian, false otherwise
properties - Map of properties assigned to this AudioFormat

FloatAudioFormat

private FloatAudioFormat(float sampleRate,
                         int sampleSizeInBits,
                         int channels,
                         boolean bigEndian)
Construct a new FloatAudioFormat

Parameters:
sampleRate - The sample rate of the format in Hz
sampleSizeInBits - The sample size in Bits. Must be either 32 or 64
channels - The number of channels of this format
bigEndian - true, if the data is aligned in big endian, false otherwise

FloatAudioFormat

private FloatAudioFormat(float sampleRate,
                         int sampleSizeInBits,
                         int channels,
                         boolean bigEndian,
                         java.util.Map properties)
Construct a new FloatAudioFormat

Parameters:
sampleRate - The sample rate of the format in Hz
sampleSizeInBits - The sample size in Bits. Must be either 32 or 64
channels - The number of channels of this format
bigEndian - true, if the data is aligned in big endian, false otherwise
properties - Map of properties assigned to this AudioFormat
Method Detail

getProperty

public java.lang.Object getProperty(java.lang.String key)
Overrides:
getProperty in class javax.sound.sampled.AudioFormat
See Also:
AudioFormat.getProperty(java.lang.String)

properties

public java.util.Map properties()
Overrides:
properties in class javax.sound.sampled.AudioFormat
See Also:
AudioFormat.properties()