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