Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(924)

Side by Side Diff: webrtc/voice_engine/output_mixer.cc

Issue 1783693005: Deprecate AudioProcessing::AnalyzeReverseStream(AudioFrame) API (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@voe
Patch Set: Rebasing Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « webrtc/modules/audio_processing/test/process_test.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « webrtc/modules/audio_processing/test/process_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698