Package org.javacord.api.audio
Interface AudioTransformer
-
public interface AudioTransformerUsed to intercept and transform audio frames.An example use case is adjusting volume.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description byte[]transform(AudioSource source, byte[] originalFrame)Intercepts and transforms the incoming audio frame.
-
-
-
Method Detail
-
transform
byte[] transform(AudioSource source, byte[] originalFrame)
Intercepts and transforms the incoming audio frame.- Parameters:
source- The audio source the frame is coming from.originalFrame- The original audio frame.- Returns:
- The transformed audio frame.
-
-