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

Side by Side Diff: webrtc/modules/audio_processing/audio_processing_impl.cc

Issue 2111553002: Improved tuning of the adaptive level controller. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@ALC_RC9_CL
Patch Set: Disabling bitexactness tests that were by mistake not disabled in the previous patch Created 4 years, 5 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 | « no previous file | webrtc/modules/audio_processing/level_controller/gain_applier.h » ('j') | 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 402 matching lines...) Expand 10 before | Expand all | Expand 10 after
413 InitializeTransient(); 413 InitializeTransient();
414 } 414 }
415 415
416 if (capture_nonlocked_.level_controller_enabled != 416 if (capture_nonlocked_.level_controller_enabled !=
417 config.Get<LevelControl>().enabled) { 417 config.Get<LevelControl>().enabled) {
418 capture_nonlocked_.level_controller_enabled = 418 capture_nonlocked_.level_controller_enabled =
419 config.Get<LevelControl>().enabled; 419 config.Get<LevelControl>().enabled;
420 LOG(LS_INFO) << "Level controller activated: " 420 LOG(LS_INFO) << "Level controller activated: "
421 << config.Get<LevelControl>().enabled; 421 << config.Get<LevelControl>().enabled;
422 422
423 // TODO(peah): Remove the explicit deactivation once
424 // the upcoming changes for the level controller tuning
425 // are landed.
426 capture_nonlocked_.level_controller_enabled = false;
427 InitializeLevelController(); 423 InitializeLevelController();
428 } 424 }
429 425
430 if(capture_nonlocked_.intelligibility_enabled != 426 if(capture_nonlocked_.intelligibility_enabled !=
431 config.Get<Intelligibility>().enabled) { 427 config.Get<Intelligibility>().enabled) {
432 capture_nonlocked_.intelligibility_enabled = 428 capture_nonlocked_.intelligibility_enabled =
433 config.Get<Intelligibility>().enabled; 429 config.Get<Intelligibility>().enabled;
434 InitializeIntelligibility(); 430 InitializeIntelligibility();
435 } 431 }
436 432
(...skipping 1049 matching lines...) Expand 10 before | Expand all | Expand 10 after
1486 debug_dump_.capture.event_msg->mutable_config()->CopyFrom(config); 1482 debug_dump_.capture.event_msg->mutable_config()->CopyFrom(config);
1487 1483
1488 RETURN_ON_ERR(WriteMessageToDebugFile(debug_dump_.debug_file.get(), 1484 RETURN_ON_ERR(WriteMessageToDebugFile(debug_dump_.debug_file.get(),
1489 &debug_dump_.num_bytes_left_for_log_, 1485 &debug_dump_.num_bytes_left_for_log_,
1490 &crit_debug_, &debug_dump_.capture)); 1486 &crit_debug_, &debug_dump_.capture));
1491 return kNoError; 1487 return kNoError;
1492 } 1488 }
1493 #endif // WEBRTC_AUDIOPROC_DEBUG_DUMP 1489 #endif // WEBRTC_AUDIOPROC_DEBUG_DUMP
1494 1490
1495 } // namespace webrtc 1491 } // namespace webrtc
OLDNEW
« no previous file with comments | « no previous file | webrtc/modules/audio_processing/level_controller/gain_applier.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698