public class VolumeAdjustProcessor extends AudioProcessor
Constructor and Description |
---|
VolumeAdjustProcessor(double factor)
Default constructor that takes the volume adjustment
factor as a double.
|
VolumeAdjustProcessor(double factor,
AudioStream a)
Constructor that takes the volume adjustment factor to apply
to the given stream.
|
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 VolumeAdjustProcessor(double factor)
factor
- public VolumeAdjustProcessor(double factor, AudioStream a)
factor
- the factor to applya
- The audio stream to apply the factor topublic SampleChunk process(SampleChunk sample) throws Exception
AudioProcessor
process
in class AudioProcessor
sample
- The sample chunk to process.Exception
- If the processing could not take placeAudioProcessor.process(org.openimaj.audio.SampleChunk)