public class RecorderSettings
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
static int[] |
BITDEPTHS
Allowable bit depths.
|
java.lang.String |
rawDataSource
Name of the raw data source
|
static long |
serialVersionUID |
Modifier and Type | Method and Description |
---|---|
RecorderSettings |
clone() |
RecorderTriggerData |
findTriggerData(RecorderTrigger recorderTrigger)
Find the active trigger data for a trigger of a given name.
|
RecorderTriggerData |
findTriggerData(java.lang.String triggerName)
find a set of trigger data by name.
|
int |
getChannelBitmap(int availableChannels)
get the channel map, but tell it what channels are available !
|
boolean |
getChannelBitmap(int availableChannels,
int iChannel)
Get the state of a single channel.
|
javax.sound.sampled.AudioFileFormat.Type |
getFileType()
Since AudioFileFormat.Type is not serialized, fileType
is stored as a sting.
|
double |
getLongestHistory()
Get the largest (enabled) pre trigger time
|
void |
replaceTriggerData(RecorderTriggerData newData)
Find a trigger data object with the same name and replace it.
|
void |
setChannelBitmap(int channelBitmap) |
int |
setChannelBitmap(int iChannel,
boolean state)
Set the bitmap for a given channel.
|
void |
setFileType(javax.sound.sampled.AudioFileFormat.Type fileType) |
public static final long serialVersionUID
public static final int[] BITDEPTHS
public java.lang.String rawDataSource
public RecorderTriggerData findTriggerData(RecorderTrigger recorderTrigger)
If the trigger data cannot be found, add the default set.
recorderTrigger
- public RecorderTriggerData findTriggerData(java.lang.String triggerName)
triggerName
- trigger namepublic double getLongestHistory()
public RecorderSettings clone()
clone
in class java.lang.Object
public javax.sound.sampled.AudioFileFormat.Type getFileType()
AudioFormat
public void setFileType(javax.sound.sampled.AudioFileFormat.Type fileType)
public void replaceTriggerData(RecorderTriggerData newData)
newData
- public int getChannelBitmap(int availableChannels)
availableChannels
- available cahnnels (channel map of parent process)public void setChannelBitmap(int channelBitmap)
channelBitmap
- the channelBitmap to setpublic int setChannelBitmap(int iChannel, boolean state)
iChannel
- channel numberstate
- on or of (true or false)public boolean getChannelBitmap(int availableChannels, int iChannel)
availableChannels
- available channelsiChannel
- channel number