Skip to content

Commit

Permalink
Add missing setAudioRecordDataCallback method
Browse files Browse the repository at this point in the history
  • Loading branch information
skydoves committed Nov 28, 2024
1 parent 4522cdc commit 67cec93
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ public static class Builder {
private AudioAttributes audioAttributes;
private boolean useLowLatency;
private boolean enableVolumeLogger;
private AudioRecordDataCallback audioRecordDataCallback;

private Builder(Context context) {
this.context = context;
Expand Down Expand Up @@ -221,6 +222,16 @@ public Builder setEnableVolumeLogger(boolean enableVolumeLogger) {
return this;
}

/**
* Can be used to gain access to the raw ByteBuffer from the recording device before it's
* fed into WebRTC. You can use this to manipulate the ByteBuffer (e.g. audio filters).
* Make sure that the operation is fast.
*/
public Builder setAudioRecordDataCallback(AudioRecordDataCallback audioRecordDataCallback) {
this.audioRecordDataCallback = audioRecordDataCallback;
return this;
}

/**
* Construct an AudioDeviceModule based on the supplied arguments. The caller takes ownership
* and is responsible for calling release().
Expand Down

0 comments on commit 67cec93

Please sign in to comment.