public class Preemphasiser extends AudioProcessor
Constructor and Description |
---|
Preemphasiser()
Default constructor
|
Preemphasiser(AudioStream as)
Chainiable constructor
|
Preemphasiser(AudioStream as,
double factor)
Chainable constructor that takes the emphasis factor.
|
Preemphasiser(double factor)
Constructor that takes the emphasis factor.
|
Modifier and Type | Method and Description |
---|---|
SampleChunk |
process(SampleChunk sample)
Function that takes a sample chunk and processes the chunk.
|
getLength, getUnderlyingStream, nextSampleChunk, process, processingComplete, reset, setUnderlyingStream
iterator, seek
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public Preemphasiser()
public Preemphasiser(double factor)
factor
- The emphasis factorpublic Preemphasiser(AudioStream as)
as
- The stream to chain topublic Preemphasiser(AudioStream as, double factor)
as
- The stream to chain tofactor
- The emphasis factorpublic SampleChunk process(SampleChunk sample) throws Exception
process
in class AudioProcessor
sample
- The sample chunk to process.Exception
- If the processing could not take placeAudioProcessor.process(org.openimaj.audio.SampleChunk)