File tree Expand file tree Collapse file tree 1 file changed +31
-0
lines changed
stream-webrtc-android/src/main/java/org/webrtc Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change 1+ package org .webrtc ;
2+
3+ public class ExternalAudioProcessingFactory implements AudioProcessingFactory {
4+
5+ private final String libname ;
6+
7+ public ExternalAudioProcessingFactory (String libname ) {
8+ if (libname == null ) {
9+ throw new NullPointerException ("libname must not be null." );
10+ }
11+ if (libname .isEmpty ()) {
12+ throw new IllegalArgumentException ("libname must not be empty." );
13+ }
14+ this .libname = libname ;
15+ }
16+
17+ @ Override
18+ public long createNative () {
19+ return nativeCreateAudioProcessingModule (libname );
20+ }
21+
22+ public void destroyNative () {
23+ nativeDestroyAudioProcessingModule ();
24+ }
25+
26+ private static native long nativeCreateAudioProcessingModule (String libname );
27+
28+
29+ private static native void nativeDestroyAudioProcessingModule ();
30+
31+ }
You can’t perform that action at this time.
0 commit comments