Index: webrtc/sdk/android/src/jni/audio_jni.cc |
diff --git a/webrtc/sdk/android/src/jni/audio_jni.cc b/webrtc/sdk/android/src/jni/audio_jni.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..58ab73ec65568ec737e623dc36643c8db7b9e32f |
--- /dev/null |
+++ b/webrtc/sdk/android/src/jni/audio_jni.cc |
@@ -0,0 +1,26 @@ |
+/* |
+ * Copyright 2017 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. |
+ */ |
+ |
+#include "webrtc/sdk/android/src/jni/audio_jni.h" |
+ |
+#include "webrtc/api/audio_codecs/builtin_audio_decoder_factory.h" |
+#include "webrtc/api/audio_codecs/builtin_audio_encoder_factory.h" |
+ |
+namespace webrtc_jni { |
+ |
+rtc::scoped_refptr<webrtc::AudioDecoderFactory> CreateAudioDecoderFactory() { |
+ return webrtc::CreateBuiltinAudioDecoderFactory(); |
+} |
+ |
+rtc::scoped_refptr<webrtc::AudioEncoderFactory> CreateAudioEncoderFactory() { |
+ return webrtc::CreateBuiltinAudioEncoderFactory(); |
+} |
+ |
+} // namespace webrtc_jni |