SoundRecorder
Class RecorderSettings

java.lang.Object
  extended by SoundRecorder.RecorderSettings
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class RecorderSettings
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable

Control parameters for sound recorders.

Author:
Doug Gillespie
See Also:
Serialized Form

Field Summary
(package private)  int autoDuration
          Duration of automatic recordings in seconds
(package private)  int autoInterval
          Number of seconds between automatic recordings
(package private)  boolean autoStart
          If PAMGAURD stops and starts, automatically put the recorder back into the same mode it was in when acquisition stopped.
(package private)  int bitDepth
          bit depth (NOT Byte depth) of the recording format.
(package private)  int bufferLength
          Lenght of the buffered data to store
(package private)  int channelBitmap
          Bitmap of channels to be saved (need not be all available channels)
(package private)  boolean enableBuffer
          Buffer data so that it can be added to the start of a file
(package private)  boolean[] enableTrigger
          Enable triggers (from detectors).
(package private)  java.lang.String fileInitials
          Initials to add to the start of a file name, the rest of which is made up from the date.
private  java.lang.String fileType
          Unfortunately AudioFileFormat.Type is not serialized, so store as a string and have getters and setters to sort out the mess
(package private)  boolean limitLengthMegaBytes
          Limit the maximum length of a single file in Mega bytes
(package private)  boolean limitLengthSeconds
          Limit the maximum length of a single file in seconds
(package private)  long maxLengthMegaBytes
          Maximum length of a single file in Mega bytes
(package private)  int maxLengthSeconds
          Maximum length of a single file in seconds
(package private)  int oldStatus
          Memorised status for autoStart
(package private)  java.lang.String outputFolder
          Output folder for recording files
 java.lang.String rawDataSource
          Name of the raw data source
static long serialVersionUID
           
 
Constructor Summary
RecorderSettings()
           
 
Method Summary
protected  RecorderSettings clone()
           
 javax.sound.sampled.AudioFileFormat.Type getFileType()
          Since AudioFileFormat.Type is not serialized, fileType is stored as a sting.
 void setFileType(javax.sound.sampled.AudioFileFormat.Type fileType)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

public static final long serialVersionUID
See Also:
Constant Field Values

rawDataSource

public java.lang.String rawDataSource
Name of the raw data source


channelBitmap

int channelBitmap
Bitmap of channels to be saved (need not be all available channels)


bitDepth

int bitDepth
bit depth (NOT Byte depth) of the recording format.


enableBuffer

boolean enableBuffer
Buffer data so that it can be added to the start of a file


bufferLength

int bufferLength
Lenght of the buffered data to store


outputFolder

java.lang.String outputFolder
Output folder for recording files


fileInitials

java.lang.String fileInitials
Initials to add to the start of a file name, the rest of which is made up from the date.


fileType

private java.lang.String fileType
Unfortunately AudioFileFormat.Type is not serialized, so store as a string and have getters and setters to sort out the mess


autoInterval

int autoInterval
Number of seconds between automatic recordings


autoDuration

int autoDuration
Duration of automatic recordings in seconds


maxLengthSeconds

int maxLengthSeconds
Maximum length of a single file in seconds


limitLengthSeconds

boolean limitLengthSeconds
Limit the maximum length of a single file in seconds


maxLengthMegaBytes

long maxLengthMegaBytes
Maximum length of a single file in Mega bytes


limitLengthMegaBytes

boolean limitLengthMegaBytes
Limit the maximum length of a single file in Mega bytes


enableTrigger

boolean[] enableTrigger
Enable triggers (from detectors). It is possible that the number of triggers will increase, in which case, this array will get extended before it is next saved.


autoStart

boolean autoStart
If PAMGAURD stops and starts, automatically put the recorder back into the same mode it was in when acquisition stopped.


oldStatus

int oldStatus
Memorised status for autoStart

See Also:
autoStart
Constructor Detail

RecorderSettings

RecorderSettings()
Method Detail

clone

protected RecorderSettings clone()
Overrides:
clone in class java.lang.Object

getFileType

public javax.sound.sampled.AudioFileFormat.Type getFileType()
Since AudioFileFormat.Type is not serialized, fileType is stored as a sting. Teh getter therefore needs to search available file types ang return the appropriate one.

Returns:
Format type for the audio file
See Also:
AudioFormat

setFileType

public void setFileType(javax.sound.sampled.AudioFileFormat.Type fileType)