public class EffectiveSoundPressure extends FixedSizeSampleAudioProcessor
|Constructor and Description|
Construct with given stream and window parameters.
Contstructor for ad-hoc processing.
|Modifier and Type||Method and Description|
Function that takes a sample chunk and processes the chunk.
getWindowSize, getWindowStep, isOverlapping, nextSampleChunk, setWindowSize, setWindowStep
getLength, getUnderlyingStream, process, processingComplete, reset, setUnderlyingStream
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public EffectiveSoundPressure(int windowSizeSamples, int overlapSamples)
windowSizeSamples- Size of the processing window in samples
overlapSamples- The overlap of the windows in samples
public EffectiveSoundPressure(AudioStream stream, int windowSizeMillis, int overlapMillis)
stream- The audio stream
windowSizeMillis- The window size in milliseconds
overlapMillis- The overlap between windows in milliseconds
public SampleChunk process(SampleChunk sample) throws Exception
FixedSizeSampleAudioProcessoris simply to change the shape of the sample chunk. You may override this method to process the samples directly.
sample- The sample chunk to process.
Exception- If the processing could not take place
public double getEffectiveSoundPressure()