Class VolumePostProcessor
- java.lang.Object
-
- com.sedmelluq.discord.lavaplayer.filter.volume.VolumePostProcessor
-
- All Implemented Interfaces:
AudioPostProcessor
public class VolumePostProcessor extends java.lang.Object implements AudioPostProcessor
Audio chunk post processor to apply selected volume.
-
-
Constructor Summary
Constructors Constructor Description VolumePostProcessor(AudioProcessingContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Frees up all resources this processor is holding internally.voidprocess(long timecode, java.nio.ShortBuffer buffer)Receives chunk buffer in its final PCM format with the sample count, sample rate and channel count matching that of the output format.
-
-
-
Constructor Detail
-
VolumePostProcessor
public VolumePostProcessor(AudioProcessingContext context)
- Parameters:
context- Configuration and output information for processing
-
-
Method Detail
-
process
public void process(long timecode, java.nio.ShortBuffer buffer) throws java.lang.InterruptedExceptionDescription copied from interface:AudioPostProcessorReceives chunk buffer in its final PCM format with the sample count, sample rate and channel count matching that of the output format.- Specified by:
processin interfaceAudioPostProcessor- Parameters:
timecode- Absolute starting timecode of the chunk in millisecondsbuffer- PCM buffer of samples in the chunk- Throws:
java.lang.InterruptedException- When interrupted externally (or for seek/stop).
-
close
public void close()
Description copied from interface:AudioPostProcessorFrees up all resources this processor is holding internally.- Specified by:
closein interfaceAudioPostProcessor
-
-