OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 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 | 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 | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
11 // This file contains JNI for the voice engine interfaces. | 11 // This file contains JNI for the voice engine interfaces. |
12 // The native functions are found using jni's auto discovery. | 12 // The native functions are found using jni's auto discovery. |
13 | 13 |
14 #include "webrtc/examples/android/media_demo/jni/voice_engine_jni.h" | 14 #include "webrtc/examples/android/media_demo/jni/voice_engine_jni.h" |
15 | 15 |
16 #include <map> | 16 #include <map> |
17 #include <string> | 17 #include <string> |
18 | 18 |
19 #include "webrtc/base/arraysize.h" | 19 #include "webrtc/base/arraysize.h" |
20 #include "webrtc/examples/android/media_demo/jni/jni_helpers.h" | 20 #include "webrtc/examples/android/media_demo/jni/jni_helpers.h" |
21 #include "webrtc/modules/utility/interface/helpers_android.h" | 21 #include "webrtc/modules/utility/include/helpers_android.h" |
22 #include "webrtc/test/channel_transport/include/channel_transport.h" | 22 #include "webrtc/test/channel_transport/include/channel_transport.h" |
23 #include "webrtc/voice_engine/include/voe_audio_processing.h" | 23 #include "webrtc/voice_engine/include/voe_audio_processing.h" |
24 #include "webrtc/voice_engine/include/voe_base.h" | 24 #include "webrtc/voice_engine/include/voe_base.h" |
25 #include "webrtc/voice_engine/include/voe_codec.h" | 25 #include "webrtc/voice_engine/include/voe_codec.h" |
26 #include "webrtc/voice_engine/include/voe_file.h" | 26 #include "webrtc/voice_engine/include/voe_file.h" |
27 #include "webrtc/voice_engine/include/voe_hardware.h" | 27 #include "webrtc/voice_engine/include/voe_hardware.h" |
28 #include "webrtc/voice_engine/include/voe_network.h" | 28 #include "webrtc/voice_engine/include/voe_network.h" |
29 #include "webrtc/voice_engine/include/voe_rtp_rtcp.h" | 29 #include "webrtc/voice_engine/include/voe_rtp_rtcp.h" |
30 #include "webrtc/voice_engine/include/voe_volume_control.h" | 30 #include "webrtc/voice_engine/include/voe_volume_control.h" |
31 | 31 |
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
414 return GetCodecInst(jni, j_codec)->pacsize; | 414 return GetCodecInst(jni, j_codec)->pacsize; |
415 } | 415 } |
416 | 416 |
417 JOWW(jint, CodecInst_channels)(JNIEnv* jni, jobject j_codec) { | 417 JOWW(jint, CodecInst_channels)(JNIEnv* jni, jobject j_codec) { |
418 return GetCodecInst(jni, j_codec)->channels; | 418 return GetCodecInst(jni, j_codec)->channels; |
419 } | 419 } |
420 | 420 |
421 JOWW(jint, CodecInst_rate)(JNIEnv* jni, jobject j_codec) { | 421 JOWW(jint, CodecInst_rate)(JNIEnv* jni, jobject j_codec) { |
422 return GetCodecInst(jni, j_codec)->rate; | 422 return GetCodecInst(jni, j_codec)->rate; |
423 } | 423 } |
OLD | NEW |