diff --git a/main/src/main/java/com/sedmelluq/discord/lavaplayer/track/playback/MutableAudioFrame.java b/main/src/main/java/com/sedmelluq/discord/lavaplayer/track/playback/MutableAudioFrame.java index 7c325c0c..c68a33e1 100644 --- a/main/src/main/java/com/sedmelluq/discord/lavaplayer/track/playback/MutableAudioFrame.java +++ b/main/src/main/java/com/sedmelluq/discord/lavaplayer/track/playback/MutableAudioFrame.java @@ -10,6 +10,18 @@ public class MutableAudioFrame extends AbstractMutableAudioFrame { private int framePosition; private int frameLength; + public MutableAudioFrame() { + } + + /** + * This should be called only by the requester of a frame. + * + * @param frameBuffer Buffer to use internally. + */ + public MutableAudioFrame(final ByteBuffer frameBuffer) { + this.setBuffer(frameBuffer); + } + /** * This should be called only by the requester of a frame. *