Skip to content

Commit

Permalink
Add constructor with ByteByffer to MutableAudioFrame (#158)
Browse files Browse the repository at this point in the history
MutableAudioFrame(ByteBuffer) {}
  • Loading branch information
Currypan1229 authored Nov 26, 2024
1 parent c98be9d commit 845f8d5
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down

0 comments on commit 845f8d5

Please sign in to comment.