Skip to content

Commit 04481ca

Browse files
authored
[PBE-5300] add ManagedAudioProcessingFactory (#39)
1 parent 452dd6b commit 04481ca

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

sdk/android/BUILD.gn

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,7 @@ if (is_android) {
271271
"api/org/webrtc/FrameEncryptor.java",
272272
"api/org/webrtc/IceCandidate.java",
273273
"api/org/webrtc/IceCandidateErrorEvent.java",
274+
"api/org/webrtc/ManagedAudioProcessingFactory.java",
274275
"api/org/webrtc/MediaConstraints.java",
275276
"api/org/webrtc/MediaSource.java",
276277
"api/org/webrtc/MediaStream.java",
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
/*
2+
* Copyright 2024 The WebRTC project authors. All Rights Reserved.
3+
*
4+
* Use of this source code is governed by a BSD-style license
5+
* that can be found in the LICENSE file in the root of the source
6+
* tree. An additional intellectual property rights grant can be found
7+
* in the file PATENTS. All contributing project authors may
8+
* be found in the AUTHORS file in the root of the source tree.
9+
*/
10+
11+
package org.webrtc;
12+
13+
/** AudioProcessing factory with lifecycle management and runtime control capabilities. */
14+
public interface ManagedAudioProcessingFactory extends AudioProcessingFactory {
15+
/**
16+
* Destroys the native AudioProcessing instance.
17+
*/
18+
public void destroyNative();
19+
20+
/**
21+
* Checks if the AudioProcessing is enabled.
22+
* @return true if enabled, false otherwise.
23+
*/
24+
public boolean isEnabled();
25+
26+
/**
27+
* Sets the enabled state of the AudioProcessing.
28+
* @param enabled The desired enabled state.
29+
*/
30+
public void setEnabled(boolean enabled);
31+
}

0 commit comments

Comments
 (0)