com.groovemanager.sampled.providers
Class WavAudioFileFormat

java.lang.Object
  extended by javax.sound.sampled.AudioFileFormat
      extended by com.groovemanager.sampled.providers.WavAudioFileFormat

public class WavAudioFileFormat
extends javax.sound.sampled.AudioFileFormat

This class represents an AudioFileFormat for wav e files

Author:
Manu Robledo

Nested Class Summary
 
Nested classes inherited from class javax.sound.sampled.AudioFileFormat
javax.sound.sampled.AudioFileFormat.Type
 
Field Summary
protected  java.util.Map properties
          Map of properties assigned to this format.
 
Constructor Summary
WavAudioFileFormat(javax.sound.sampled.AudioFormat format, int frameLength)
          Construct a new WavAudioFileFormat
WavAudioFileFormat(javax.sound.sampled.AudioFormat format, int frameLength, java.util.Map properties)
          Construct a new WavAudioFileFormat
WavAudioFileFormat(int byteLength, javax.sound.sampled.AudioFormat format, int frameLength)
          Construct a new WavAudioFileFormat
 
Method Summary
 java.lang.Object getProperty(java.lang.String s)
           
 java.util.Map properties()
           
 
Methods inherited from class javax.sound.sampled.AudioFileFormat
getByteLength, getFormat, getFrameLength, getType, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

properties

protected java.util.Map properties
Map of properties assigned to this format. (For compatibility to 1.4)

Constructor Detail

WavAudioFileFormat

public WavAudioFileFormat(javax.sound.sampled.AudioFormat format,
                          int frameLength)
Construct a new WavAudioFileFormat

Parameters:
format - The AudioFormat of the data
frameLength - The length of the data in sample frames

WavAudioFileFormat

public WavAudioFileFormat(javax.sound.sampled.AudioFormat format,
                          int frameLength,
                          java.util.Map properties)
Construct a new WavAudioFileFormat

Parameters:
format - The AudioFormat of the data
frameLength - The length of the data in sample frames
properties - Map of additional properties of this format

WavAudioFileFormat

public WavAudioFileFormat(int byteLength,
                          javax.sound.sampled.AudioFormat format,
                          int frameLength)
Construct a new WavAudioFileFormat

Parameters:
byteLength - The bytelength of the audio file
format - The AudioFormat of the data
frameLength - The length of the data in sample frames
Method Detail

getProperty

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

properties

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