Package soundPlayback.preprocess
Class PlaybackGain
java.lang.Object
soundPlayback.preprocess.PlaybackGain
- All Implemented Interfaces:
PlaybackPreprocess
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble
Get the gain in decibels.Get a component to include in the PAMGuard side panel.Get a node to include in the PAMGuard side panel.boolean
isActive()
return true if the preprocess is doing anything.processDataUnit
(RawDataUnit inputDataUnit, boolean mustCopy) Process a data unit.void
reset
(double inputSampleRate, int channelMap) Reset or prepare the process
Will almost definitely need another less abstract process for setting more specific task parameters.void
setGaindB
(double gaindB) Set the gain in decibels.
-
Constructor Details
-
PlaybackGain
-
-
Method Details
-
reset
public void reset(double inputSampleRate, int channelMap) Description copied from interface:PlaybackPreprocess
Reset or prepare the process
Will almost definitely need another less abstract process for setting more specific task parameters.- Specified by:
reset
in interfacePlaybackPreprocess
- Parameters:
channelMap
- map of channels that are going to get processed.
-
processDataUnit
Description copied from interface:PlaybackPreprocess
Process a data unit.- Specified by:
processDataUnit
in interfacePlaybackPreprocess
- Parameters:
inputDataUnit
- source data unit.mustCopy
- data must not be modified in place. This will be set true for the rist unit in a chain in the playback system (generally a decimator) after that it will be false meaning that processes are free to modify the data in place so long as it remains consistent in length, etc.- Returns:
- a Raw data unit which may or may not be the same as the input one.
-
setGaindB
public void setGaindB(double gaindB) Set the gain in decibels.- Parameters:
gaindB
- gain in decibels.
-
getGaindB
public double getGaindB()Get the gain in decibels.- Returns:
- gain in decibels.
-
getSideParComponent
Description copied from interface:PlaybackPreprocess
Get a component to include in the PAMGuard side panel.- Specified by:
getSideParComponent
in interfacePlaybackPreprocess
- Returns:
- Component for the side panel
-
isActive
public boolean isActive()Description copied from interface:PlaybackPreprocess
return true if the preprocess is doing anything.- Specified by:
isActive
in interfacePlaybackPreprocess
- Returns:
- Component for the side panel
-
getTextValue
-
getSideParPane
Description copied from interface:PlaybackPreprocess
Get a node to include in the PAMGuard side panel.- Specified by:
getSideParPane
in interfacePlaybackPreprocess
- Returns:
- pane for the side panel
-