Skip to content

Commit

Permalink
Make encode() method private
Browse files Browse the repository at this point in the history
It is only used from AudioEncoder.

PR Genymobile#5102 <Genymobile#5102>
  • Loading branch information
rom1v authored and Gottox committed Sep 29, 2024
1 parent f1034ec commit 6c3b1ae
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ private synchronized void waitEnded() {
}

@TargetApi(Build.VERSION_CODES.M)
public void encode() throws IOException, ConfigurationException, AudioCaptureForegroundException {
private void encode() throws IOException, ConfigurationException, AudioCaptureForegroundException {
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.R) {
Ln.w("Audio disabled: it is not supported before Android 11");
streamer.writeDisableStream(false);
Expand Down

0 comments on commit 6c3b1ae

Please sign in to comment.