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 500 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
511 } | 511 } |
512 | 512 |
513 assert(_audioFrame.num_channels_ == 2); | 513 assert(_audioFrame.num_channels_ == 2); |
514 AudioFrameOperations::Scale(_panLeft, _panRight, _audioFrame); | 514 AudioFrameOperations::Scale(_panLeft, _panRight, _audioFrame); |
515 } | 515 } |
516 | 516 |
517 // --- Far-end Voice Quality Enhancement (AudioProcessing Module) | 517 // --- Far-end Voice Quality Enhancement (AudioProcessing Module) |
518 if (feed_data_to_apm) { | 518 if (feed_data_to_apm) { |
519 if (_audioProcessingModulePtr->ProcessReverseStream(&_audioFrame) != 0) { | 519 if (_audioProcessingModulePtr->ProcessReverseStream(&_audioFrame) != 0) { |
520 WEBRTC_TRACE(kTraceWarning, kTraceVoice, VoEId(_instanceId, -1), | 520 WEBRTC_TRACE(kTraceWarning, kTraceVoice, VoEId(_instanceId, -1), |
521 "AudioProcessingModule::AnalyzeReverseStream() => error"); | 521 "AudioProcessingModule::ProcessReverseStream() => error"); |
522 RTC_DCHECK(false); | 522 RTC_DCHECK(false); |
523 } | 523 } |
524 } | 524 } |
525 | 525 |
526 // --- External media processing | 526 // --- External media processing |
527 { | 527 { |
528 rtc::CritScope cs(&_callbackCritSect); | 528 rtc::CritScope cs(&_callbackCritSect); |
529 if (_externalMedia) | 529 if (_externalMedia) |
530 { | 530 { |
531 const bool is_stereo = (_audioFrame.num_channels_ == 2); | 531 const bool is_stereo = (_audioFrame.num_channels_ == 2); |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
591 _audioFrame.data_[2 * i + 1] = 0; | 591 _audioFrame.data_[2 * i + 1] = 0; |
592 } | 592 } |
593 } | 593 } |
594 assert(_audioFrame.samples_per_channel_ == toneSamples); | 594 assert(_audioFrame.samples_per_channel_ == toneSamples); |
595 | 595 |
596 return 0; | 596 return 0; |
597 } | 597 } |
598 | 598 |
599 } // namespace voe | 599 } // namespace voe |
600 } // namespace webrtc | 600 } // namespace webrtc |
OLD | NEW |