| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2014 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2014 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 |
| (...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 489 factory.createAudioSource(audioConstraints))); | 489 factory.createAudioSource(audioConstraints))); |
| 490 peerConnection.addStream(mediaStream); | 490 peerConnection.addStream(mediaStream); |
| 491 | 491 |
| 492 if (peerConnectionParameters.aecDump) { | 492 if (peerConnectionParameters.aecDump) { |
| 493 try { | 493 try { |
| 494 aecDumpFileDescriptor = ParcelFileDescriptor.open( | 494 aecDumpFileDescriptor = ParcelFileDescriptor.open( |
| 495 new File("/sdcard/Download/audio.aecdump"), | 495 new File("/sdcard/Download/audio.aecdump"), |
| 496 ParcelFileDescriptor.MODE_READ_WRITE | | 496 ParcelFileDescriptor.MODE_READ_WRITE | |
| 497 ParcelFileDescriptor.MODE_CREATE | | 497 ParcelFileDescriptor.MODE_CREATE | |
| 498 ParcelFileDescriptor.MODE_TRUNCATE); | 498 ParcelFileDescriptor.MODE_TRUNCATE); |
| 499 factory.startAecDump(aecDumpFileDescriptor.getFd(), -1); | 499 factory.startAecDump(aecDumpFileDescriptor.getFd()); |
| 500 } catch(IOException e) { | 500 } catch(IOException e) { |
| 501 Log.e(TAG, "Can not open aecdump file", e); | 501 Log.e(TAG, "Can not open aecdump file", e); |
| 502 } | 502 } |
| 503 } | 503 } |
| 504 | 504 |
| 505 Log.d(TAG, "Peer connection created."); | 505 Log.d(TAG, "Peer connection created."); |
| 506 } | 506 } |
| 507 | 507 |
| 508 private void closeInternal() { | 508 private void closeInternal() { |
| 509 if (factory != null && peerConnectionParameters.aecDump) { | 509 if (factory != null && peerConnectionParameters.aecDump) { |
| (...skipping 564 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1074 public void onCreateFailure(final String error) { | 1074 public void onCreateFailure(final String error) { |
| 1075 reportError("createSDP error: " + error); | 1075 reportError("createSDP error: " + error); |
| 1076 } | 1076 } |
| 1077 | 1077 |
| 1078 @Override | 1078 @Override |
| 1079 public void onSetFailure(final String error) { | 1079 public void onSetFailure(final String error) { |
| 1080 reportError("setSDP error: " + error); | 1080 reportError("setSDP error: " + error); |
| 1081 } | 1081 } |
| 1082 } | 1082 } |
| 1083 } | 1083 } |
| OLD | NEW |