| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 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 476 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 487 } | 487 } |
| 488 | 488 |
| 489 assert(_audioFrame.num_channels_ == 2); | 489 assert(_audioFrame.num_channels_ == 2); |
| 490 AudioFrameOperations::Scale(_panLeft, _panRight, _audioFrame); | 490 AudioFrameOperations::Scale(_panLeft, _panRight, _audioFrame); |
| 491 } | 491 } |
| 492 | 492 |
| 493 // --- Far-end Voice Quality Enhancement (AudioProcessing Module) | 493 // --- Far-end Voice Quality Enhancement (AudioProcessing Module) |
| 494 if (feed_data_to_apm) { | 494 if (feed_data_to_apm) { |
| 495 if (_audioProcessingModulePtr->ProcessReverseStream(&_audioFrame) != 0) { | 495 if (_audioProcessingModulePtr->ProcessReverseStream(&_audioFrame) != 0) { |
| 496 WEBRTC_TRACE(kTraceWarning, kTraceVoice, VoEId(_instanceId, -1), | 496 WEBRTC_TRACE(kTraceWarning, kTraceVoice, VoEId(_instanceId, -1), |
| 497 "AudioProcessingModule::AnalyzeReverseStream() => error"); | 497 "AudioProcessingModule::ProcessReverseStream() => error"); |
| 498 RTC_DCHECK(false); | 498 RTC_DCHECK(false); |
| 499 } | 499 } |
| 500 } | 500 } |
| 501 | 501 |
| 502 // --- External media processing | 502 // --- External media processing |
| 503 { | 503 { |
| 504 rtc::CritScope cs(&_callbackCritSect); | 504 rtc::CritScope cs(&_callbackCritSect); |
| 505 if (_externalMedia) | 505 if (_externalMedia) |
| 506 { | 506 { |
| 507 const bool is_stereo = (_audioFrame.num_channels_ == 2); | 507 const bool is_stereo = (_audioFrame.num_channels_ == 2); |
| (...skipping 10 matching lines...) Expand all Loading... |
| 518 } | 518 } |
| 519 } | 519 } |
| 520 | 520 |
| 521 // --- Measure audio level (0-9) for the combined signal | 521 // --- Measure audio level (0-9) for the combined signal |
| 522 _audioLevel.ComputeLevel(_audioFrame); | 522 _audioLevel.ComputeLevel(_audioFrame); |
| 523 | 523 |
| 524 return 0; | 524 return 0; |
| 525 } | 525 } |
| 526 } // namespace voe | 526 } // namespace voe |
| 527 } // namespace webrtc | 527 } // namespace webrtc |
| OLD | NEW |