-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/GetStream/stream-webrtc-and…
- Loading branch information
Showing
4 changed files
with
45 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
stream-webrtc-android/src/main/java/org/webrtc/audio/AudioRecordDataCallback.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package org.webrtc.audio; | ||
|
||
import androidx.annotation.NonNull; | ||
|
||
import java.nio.ByteBuffer; | ||
|
||
public interface AudioRecordDataCallback { | ||
/** | ||
* Invoked after an audio sample is recorded. Can be used to manipulate | ||
* the ByteBuffer before it's fed into WebRTC. Currently the audio in the | ||
* ByteBuffer is always PCM 16bit and the buffer sample size is ~10ms. | ||
* | ||
* @param audioFormat format in android.media.AudioFormat | ||
*/ | ||
void onAudioDataRecorded(int audioFormat, int channelCount, int sampleRate, @NonNull ByteBuffer audioBuffer); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters