Class AudioFrameVolumeChanger
- java.lang.Object
-
- com.sedmelluq.discord.lavaplayer.filter.volume.AudioFrameVolumeChanger
-
- All Implemented Interfaces:
AudioFrameRebuilder
public class AudioFrameVolumeChanger extends java.lang.Object implements AudioFrameRebuilder
A frame rebuilder to apply a specific volume level to the frames.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidapply(AudioProcessingContext context)Applies a volume level to the buffered frames of a frame consumerAudioFramerebuild(AudioFrame frame)Rebuilds a frame (for example by reencoding)
-
-
-
Method Detail
-
rebuild
public AudioFrame rebuild(AudioFrame frame)
Description copied from interface:AudioFrameRebuilderRebuilds a frame (for example by reencoding)- Specified by:
rebuildin interfaceAudioFrameRebuilder- Parameters:
frame- The audio frame- Returns:
- The new frame (may be the same as input)
-
apply
public static void apply(AudioProcessingContext context)
Applies a volume level to the buffered frames of a frame consumer- Parameters:
context- Configuration and output information for processing
-
-