Skip to content

[PBE-5300] add ManagedAudioProcessingFactory #39

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions sdk/android/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,7 @@ if (is_android) {
"api/org/webrtc/FrameEncryptor.java",
"api/org/webrtc/IceCandidate.java",
"api/org/webrtc/IceCandidateErrorEvent.java",
"api/org/webrtc/ManagedAudioProcessingFactory.java",
"api/org/webrtc/MediaConstraints.java",
"api/org/webrtc/MediaSource.java",
"api/org/webrtc/MediaStream.java",
Expand Down
31 changes: 31 additions & 0 deletions sdk/android/api/org/webrtc/ManagedAudioProcessingFactory.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
/*
* Copyright 2024 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributing project authors may
* be found in the AUTHORS file in the root of the source tree.
*/

package org.webrtc;

/** AudioProcessing factory with lifecycle management and runtime control capabilities. */
public interface ManagedAudioProcessingFactory extends AudioProcessingFactory {
/**
* Destroys the native AudioProcessing instance.
*/
public void destroyNative();

/**
* Checks if the AudioProcessing is enabled.
* @return true if enabled, false otherwise.
*/
public boolean isEnabled();

/**
* Sets the enabled state of the AudioProcessing.
* @param enabled The desired enabled state.
*/
public void setEnabled(boolean enabled);
}