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, setUnderlyingStreamiterator, seekclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic 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
AudioProcessorprocess in class AudioProcessorsample - The sample chunk to process.Exception - If the processing could not take placeAudioProcessor.process(org.openimaj.audio.SampleChunk)