public class HammingAudioProcessor extends HanningAudioProcessor
useWeights, weightTable
Constructor and Description |
---|
HammingAudioProcessor(AudioStream stream,
int sizeRequired)
Chainable constructor that takes the audio stream to chain to
and the size of the window required.
|
HammingAudioProcessor(AudioStream as,
int nSamplesInWindow,
int nSamplesOverlap)
Chainable constructor that takes the size of the window and
the number of samples overlap.
|
HammingAudioProcessor(int sizeRequired)
Constructor that takes the size of the window required.
|
HammingAudioProcessor(int nSamplesInWindow,
int nSamplesOverlap)
Constructor that takes the size of the window and the number of samples
overlap.
|
Modifier and Type | Method and Description |
---|---|
protected void |
generateWeightTableCache(int length,
int nc)
Generate the cos table cache
|
getWeights, getWindowSum, getWindowSum, process, process, processSamples
getWindowSize, getWindowStep, isOverlapping, nextSampleChunk, setWindowSize, setWindowStep
getLength, getUnderlyingStream, process, processingComplete, reset, setUnderlyingStream
seek
public HammingAudioProcessor(int sizeRequired)
sizeRequired
- The size of the window in samplespublic HammingAudioProcessor(AudioStream stream, int sizeRequired)
stream
- The audio to chain tosizeRequired
- the size of the window in samplespublic HammingAudioProcessor(int nSamplesInWindow, int nSamplesOverlap)
nSamplesInWindow
- Samples in windownSamplesOverlap
- Samples in window overlappublic HammingAudioProcessor(AudioStream as, int nSamplesInWindow, int nSamplesOverlap)
as
- The chained audio streamnSamplesInWindow
- Samples in windownSamplesOverlap
- Samples in window overlapprotected void generateWeightTableCache(int length, int nc)
generateWeightTableCache
in class HanningAudioProcessor
length
- The length of the window to generate (per channel)nc
- The number of channels for which to generate a weight tableHanningAudioProcessor.generateWeightTableCache(int, int)