OLD | NEW |
1 /* | 1 /* |
2 * libjingle | 2 * libjingle |
3 * Copyright 2013 Google Inc. | 3 * Copyright 2013 Google Inc. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are met: | 6 * modification, are permitted provided that the following conditions are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright notice, | 8 * 1. Redistributions of source code must retain the above copyright notice, |
9 * this list of conditions and the following disclaimer. | 9 * this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright notice, | 10 * 2. Redistributions in binary form must reproduce the above copyright notice, |
(...skipping 1262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1273 jlong native_source) { | 1273 jlong native_source) { |
1274 rtc::scoped_refptr<PeerConnectionFactoryInterface> factory( | 1274 rtc::scoped_refptr<PeerConnectionFactoryInterface> factory( |
1275 factoryFromJava(native_factory)); | 1275 factoryFromJava(native_factory)); |
1276 rtc::scoped_refptr<AudioTrackInterface> track(factory->CreateAudioTrack( | 1276 rtc::scoped_refptr<AudioTrackInterface> track(factory->CreateAudioTrack( |
1277 JavaToStdString(jni, id), | 1277 JavaToStdString(jni, id), |
1278 reinterpret_cast<AudioSourceInterface*>(native_source))); | 1278 reinterpret_cast<AudioSourceInterface*>(native_source))); |
1279 return (jlong)track.release(); | 1279 return (jlong)track.release(); |
1280 } | 1280 } |
1281 | 1281 |
1282 JOW(jboolean, PeerConnectionFactory_nativeStartAecDump)( | 1282 JOW(jboolean, PeerConnectionFactory_nativeStartAecDump)( |
1283 JNIEnv* jni, jclass, jlong native_factory, jint file) { | 1283 JNIEnv* jni, jclass, jlong native_factory, jint file, |
| 1284 jint filesize_limit_bytes) { |
1284 #if defined(ANDROID) | 1285 #if defined(ANDROID) |
1285 rtc::scoped_refptr<PeerConnectionFactoryInterface> factory( | 1286 rtc::scoped_refptr<PeerConnectionFactoryInterface> factory( |
1286 factoryFromJava(native_factory)); | 1287 factoryFromJava(native_factory)); |
1287 return factory->StartAecDump(file); | 1288 return factory->StartAecDump(file, filesize_limit_bytes); |
1288 #else | 1289 #else |
1289 return false; | 1290 return false; |
1290 #endif | 1291 #endif |
1291 } | 1292 } |
1292 | 1293 |
1293 JOW(void, PeerConnectionFactory_nativeStopAecDump)( | 1294 JOW(void, PeerConnectionFactory_nativeStopAecDump)( |
1294 JNIEnv* jni, jclass, jlong native_factory) { | 1295 JNIEnv* jni, jclass, jlong native_factory) { |
1295 #if defined(ANDROID) | 1296 #if defined(ANDROID) |
1296 rtc::scoped_refptr<PeerConnectionFactoryInterface> factory( | 1297 rtc::scoped_refptr<PeerConnectionFactoryInterface> factory( |
1297 factoryFromJava(native_factory)); | 1298 factoryFromJava(native_factory)); |
(...skipping 865 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2163 return JavaStringFromStdString( | 2164 return JavaStringFromStdString( |
2164 jni, | 2165 jni, |
2165 reinterpret_cast<RtpReceiverInterface*>(j_rtp_receiver_pointer)->id()); | 2166 reinterpret_cast<RtpReceiverInterface*>(j_rtp_receiver_pointer)->id()); |
2166 } | 2167 } |
2167 | 2168 |
2168 JOW(void, RtpReceiver_free)(JNIEnv* jni, jclass, jlong j_rtp_receiver_pointer) { | 2169 JOW(void, RtpReceiver_free)(JNIEnv* jni, jclass, jlong j_rtp_receiver_pointer) { |
2169 reinterpret_cast<RtpReceiverInterface*>(j_rtp_receiver_pointer)->Release(); | 2170 reinterpret_cast<RtpReceiverInterface*>(j_rtp_receiver_pointer)->Release(); |
2170 } | 2171 } |
2171 | 2172 |
2172 } // namespace webrtc_jni | 2173 } // namespace webrtc_jni |
OLD | NEW |