Package SoundRecorder

Class RecorderProcess

java.lang.Object
PamguardMVC.PamProcess
SoundRecorder.RecorderProcess
All Implemented Interfaces:
PamObserver, ProcessAnnotator

public class RecorderProcess extends PamProcess
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:
  • Constructor Details

    • RecorderProcess

      public RecorderProcess(RecorderControl recorderControl)
  • Method Details

    • getRequiredDataHistory

      public long getRequiredDataHistory(PamObservable o, Object arg)
      Specified by:
      getRequiredDataHistory in interface PamObserver
      Overrides:
      getRequiredDataHistory in class PamProcess
      Parameters:
      arg - optional argument from PamObservable
      Returns:
      time in milliseconds required by data held in PamObservable
    • newData

      public void newData(PamObservable o, PamDataUnit arg)
      Overrides:
      newData in class PamProcess
    • setSampleRate

      public void setSampleRate(float sampleRate, boolean notify)
      Description copied from interface: PamObserver
      New sample rate
      Specified by:
      setSampleRate in interface PamObserver
      Overrides:
      setSampleRate in class PamProcess
      Parameters:
      notify - Notify other PamObservers and PamObservables in the chain.
    • prepareProcess

      public void prepareProcess()
      Description copied from class: PamProcess
      Called for each process before any of them receive the PamStart command
      Overrides:
      prepareProcess in class PamProcess
    • pamStart

      public void pamStart()
      Description copied from class: PamProcess
      Called for each process to tell it to start (may not be necessary for processes which are listening for data anyway).
      Specified by:
      pamStart in class PamProcess
    • pamStop

      public void pamStop()
      Description copied from class: PamProcess
      Stops the process.
      Specified by:
      pamStop in class PamProcess
    • isDataComing

      public boolean isDataComing()