Package SoundRecorder
Class RecorderProcess
java.lang.Object
PamguardMVC.PamProcess
SoundRecorder.RecorderProcess
- All Implemented Interfaces:
 PamObserver,ProcessAnnotator
Process raw audio data prior to storage. Raw data blocks
 only contain one channel of data each. RecorderProcess stacks
 up the data from all channels before passing it on the the 
 RecorderStorage
- Author:
 - Doug
 - See Also:
 
- 
Field Summary
FieldsModifier and TypeFieldDescriptionprotected doubleFlag that when recording starts the buffer should be grabbed and inserted at the start of the recording.Fields inherited from class PamguardMVC.PamProcess
outputDataBlocks, parentDataBlock, processName, sampleRate - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionlongbooleanvoidnewData(PamObservable o, PamDataUnit arg) voidpamStart()Called for each process to tell it to start (may not be necessary for processes which are listening for data anyway).voidpamStop()Stops the process.voidCalled for each process before any of them receive the PamStart commandprotected voidsetRecordStatus(int status, String actionTrigger) voidsetSampleRate(float sampleRate, boolean notify) New sample rateprotected booleanprotected voidMethods inherited from class PamguardMVC.PamProcess
absMillisecondsToSamples, absSamplesToMilliseconds, addData, addMultiPlexDataBlock, addOutputDataBlock, changedThreading, clearOldData, createAnnotations, destroyProcess, dumpBufferStatus, flushDataBlockBuffers, getAncestorDataBlock, getAnnotation, getChainPosition, getCompatibleDataUnits, getCpuPercent, getFrequencyRange, getLastSourceNotificationObject, getLastSourceNotificationType, getMuiltiplexDataBlock, getNumAnnotations, getNumMuiltiplexDataBlocks, getNumOutputDataBlocks, getObserverName, getObserverObject, getOfflineData, getOfflineData, getOutputDataBlock, getOutputDataBlocks, getPamControlledUnit, getParentDataBlock, getParentDataBlocks, getParentProcess, getProcessCheck, getProcessName, getRawSourceDataBlock, getRawSourceDataBlock, getSampleRate, getSourceDataBlock, getSourceProcess, hasOutputDatablock, isCanMultiThread, isExternalProcess, isMultiplex, makePamProcess, masterClockUpdate, noteNewSettings, notifyModelChanged, prepareProcessOK, processNewBuoyData, receiveSourceNotification, relMillisecondsToSamples, relSamplesToMilliseconds, removeAllDataBlocks, removeAllMultiPlexDataBlocks, removeMultiPlexDataBlock, removeObservable, removeOutputDatablock, resetDataBlocks, saveViewerData, setCanMultiThread, setExternalProcess, setMultiplex, setParentDataBlock, setParentDataBlock, setProcessCheck, setProcessName, setupProcess, toString, updateData 
- 
Field Details
- 
grabBuffer
protected double grabBufferFlag that when recording starts the buffer should be grabbed and inserted at the start of the recording. If recording is already running, then this flag will have no effect. It is always cleared at the end of a recording. It's an integer value, so that different recorder triggers can demand different amounts of buffer. 
 - 
 - 
Constructor Details
- 
RecorderProcess
 
 - 
 - 
Method Details
- 
getRequiredDataHistory
- Specified by:
 getRequiredDataHistoryin interfacePamObserver- Overrides:
 getRequiredDataHistoryin classPamProcess- Parameters:
 arg- optional argument from PamObservable- Returns:
 - time in milliseconds required by data held in PamObservable
 
 - 
newData
- Overrides:
 newDatain classPamProcess
 - 
setRecordStatus
 - 
stopRecording
protected boolean stopRecording() - 
storageClosed
protected void storageClosed() - 
setSampleRate
public void setSampleRate(float sampleRate, boolean notify) Description copied from interface:PamObserverNew sample rate- Specified by:
 setSampleRatein interfacePamObserver- Overrides:
 setSampleRatein classPamProcess- Parameters:
 sampleRate-notify- Notify other PamObservers and PamObservables in the chain.
 - 
prepareProcess
public void prepareProcess()Description copied from class:PamProcessCalled for each process before any of them receive the PamStart command- Overrides:
 prepareProcessin classPamProcess
 - 
pamStart
public void pamStart()Description copied from class:PamProcessCalled for each process to tell it to start (may not be necessary for processes which are listening for data anyway).- Specified by:
 pamStartin classPamProcess
 - 
pamStop
public void pamStop()Description copied from class:PamProcessStops the process.- Specified by:
 pamStopin classPamProcess
 - 
isDataComing
public boolean isDataComing() 
 -