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 1261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1272 jlong native_source) { | 1272 jlong native_source) { |
1273 rtc::scoped_refptr<PeerConnectionFactoryInterface> factory( | 1273 rtc::scoped_refptr<PeerConnectionFactoryInterface> factory( |
1274 factoryFromJava(native_factory)); | 1274 factoryFromJava(native_factory)); |
1275 rtc::scoped_refptr<AudioTrackInterface> track(factory->CreateAudioTrack( | 1275 rtc::scoped_refptr<AudioTrackInterface> track(factory->CreateAudioTrack( |
1276 JavaToStdString(jni, id), | 1276 JavaToStdString(jni, id), |
1277 reinterpret_cast<AudioSourceInterface*>(native_source))); | 1277 reinterpret_cast<AudioSourceInterface*>(native_source))); |
1278 return (jlong)track.release(); | 1278 return (jlong)track.release(); |
1279 } | 1279 } |
1280 | 1280 |
1281 JOW(jboolean, PeerConnectionFactory_nativeStartAecDump)( | 1281 JOW(jboolean, PeerConnectionFactory_nativeStartAecDump)( |
1282 JNIEnv* jni, jclass, jlong native_factory, jint file, | 1282 JNIEnv* jni, jclass, jlong native_factory, jint file) { |
1283 jint filesize_limit_bytes) { | |
1284 #if defined(ANDROID) | 1283 #if defined(ANDROID) |
1285 rtc::scoped_refptr<PeerConnectionFactoryInterface> factory( | 1284 rtc::scoped_refptr<PeerConnectionFactoryInterface> factory( |
1286 factoryFromJava(native_factory)); | 1285 factoryFromJava(native_factory)); |
1287 return factory->StartAecDump(file, filesize_limit_bytes); | 1286 return factory->StartAecDump(file); |
1288 #else | 1287 #else |
1289 return false; | 1288 return false; |
1290 #endif | 1289 #endif |
1291 } | 1290 } |
1292 | 1291 |
1293 JOW(void, PeerConnectionFactory_nativeStopAecDump)( | 1292 JOW(void, PeerConnectionFactory_nativeStopAecDump)( |
1294 JNIEnv* jni, jclass, jlong native_factory) { | 1293 JNIEnv* jni, jclass, jlong native_factory) { |
1295 #if defined(ANDROID) | 1294 #if defined(ANDROID) |
1296 rtc::scoped_refptr<PeerConnectionFactoryInterface> factory( | 1295 rtc::scoped_refptr<PeerConnectionFactoryInterface> factory( |
1297 factoryFromJava(native_factory)); | 1296 factoryFromJava(native_factory)); |
(...skipping 887 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2185 return JavaStringFromStdString( | 2184 return JavaStringFromStdString( |
2186 jni, | 2185 jni, |
2187 reinterpret_cast<RtpReceiverInterface*>(j_rtp_receiver_pointer)->id()); | 2186 reinterpret_cast<RtpReceiverInterface*>(j_rtp_receiver_pointer)->id()); |
2188 } | 2187 } |
2189 | 2188 |
2190 JOW(void, RtpReceiver_free)(JNIEnv* jni, jclass, jlong j_rtp_receiver_pointer) { | 2189 JOW(void, RtpReceiver_free)(JNIEnv* jni, jclass, jlong j_rtp_receiver_pointer) { |
2191 reinterpret_cast<RtpReceiverInterface*>(j_rtp_receiver_pointer)->Release(); | 2190 reinterpret_cast<RtpReceiverInterface*>(j_rtp_receiver_pointer)->Release(); |
2192 } | 2191 } |
2193 | 2192 |
2194 } // namespace webrtc_jni | 2193 } // namespace webrtc_jni |
OLD | NEW |