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

Side by Side Diff: webrtc/modules/audio_processing/test/audio_processing_unittest.cc

Issue 1865633005: Don't always downsample to 16kHz in the reverse stream in APM (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Only enable when render processing Created 4 years, 8 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
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 2674 matching lines...) Expand 10 before | Expand all | Expand 10 after
2685 std::tr1::make_tuple(16000, 48000, 48000, 48000, 25, 0), 2685 std::tr1::make_tuple(16000, 48000, 48000, 48000, 25, 0),
2686 std::tr1::make_tuple(16000, 48000, 32000, 48000, 25, 30), 2686 std::tr1::make_tuple(16000, 48000, 32000, 48000, 25, 30),
2687 std::tr1::make_tuple(16000, 48000, 16000, 48000, 25, 20), 2687 std::tr1::make_tuple(16000, 48000, 16000, 48000, 25, 20),
2688 std::tr1::make_tuple(16000, 44100, 48000, 44100, 15, 20), 2688 std::tr1::make_tuple(16000, 44100, 48000, 44100, 15, 20),
2689 std::tr1::make_tuple(16000, 44100, 32000, 44100, 15, 15), 2689 std::tr1::make_tuple(16000, 44100, 32000, 44100, 15, 15),
2690 std::tr1::make_tuple(16000, 44100, 16000, 44100, 15, 15), 2690 std::tr1::make_tuple(16000, 44100, 16000, 44100, 15, 15),
2691 std::tr1::make_tuple(16000, 32000, 48000, 32000, 25, 35), 2691 std::tr1::make_tuple(16000, 32000, 48000, 32000, 25, 35),
2692 std::tr1::make_tuple(16000, 32000, 32000, 32000, 25, 0), 2692 std::tr1::make_tuple(16000, 32000, 32000, 32000, 25, 0),
2693 std::tr1::make_tuple(16000, 32000, 16000, 32000, 25, 20), 2693 std::tr1::make_tuple(16000, 32000, 16000, 32000, 25, 20),
2694 std::tr1::make_tuple(16000, 16000, 48000, 16000, 40, 20), 2694 std::tr1::make_tuple(16000, 16000, 48000, 16000, 40, 20),
2695 std::tr1::make_tuple(16000, 16000, 32000, 16000, 50, 20), 2695 std::tr1::make_tuple(16000, 16000, 32000, 16000, 40, 20),
2696 std::tr1::make_tuple(16000, 16000, 16000, 16000, 0, 0))); 2696 std::tr1::make_tuple(16000, 16000, 16000, 16000, 0, 0)));
2697 2697
2698 #elif defined(WEBRTC_AUDIOPROC_FIXED_PROFILE) 2698 #elif defined(WEBRTC_AUDIOPROC_FIXED_PROFILE)
2699 INSTANTIATE_TEST_CASE_P( 2699 INSTANTIATE_TEST_CASE_P(
2700 CommonFormats, 2700 CommonFormats,
2701 AudioProcessingTest, 2701 AudioProcessingTest,
2702 testing::Values(std::tr1::make_tuple(48000, 48000, 48000, 48000, 20, 0), 2702 testing::Values(std::tr1::make_tuple(48000, 48000, 48000, 48000, 20, 0),
2703 std::tr1::make_tuple(48000, 48000, 32000, 48000, 20, 30), 2703 std::tr1::make_tuple(48000, 48000, 32000, 48000, 20, 30),
2704 std::tr1::make_tuple(48000, 48000, 16000, 48000, 20, 20), 2704 std::tr1::make_tuple(48000, 48000, 16000, 48000, 20, 20),
2705 std::tr1::make_tuple(48000, 44100, 48000, 44100, 15, 20), 2705 std::tr1::make_tuple(48000, 44100, 48000, 44100, 15, 20),
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
2741 std::tr1::make_tuple(16000, 48000, 48000, 48000, 25, 0), 2741 std::tr1::make_tuple(16000, 48000, 48000, 48000, 25, 0),
2742 std::tr1::make_tuple(16000, 48000, 32000, 48000, 25, 30), 2742 std::tr1::make_tuple(16000, 48000, 32000, 48000, 25, 30),
2743 std::tr1::make_tuple(16000, 48000, 16000, 48000, 25, 20), 2743 std::tr1::make_tuple(16000, 48000, 16000, 48000, 25, 20),
2744 std::tr1::make_tuple(16000, 44100, 48000, 44100, 15, 20), 2744 std::tr1::make_tuple(16000, 44100, 48000, 44100, 15, 20),
2745 std::tr1::make_tuple(16000, 44100, 32000, 44100, 15, 15), 2745 std::tr1::make_tuple(16000, 44100, 32000, 44100, 15, 15),
2746 std::tr1::make_tuple(16000, 44100, 16000, 44100, 15, 15), 2746 std::tr1::make_tuple(16000, 44100, 16000, 44100, 15, 15),
2747 std::tr1::make_tuple(16000, 32000, 48000, 32000, 25, 35), 2747 std::tr1::make_tuple(16000, 32000, 48000, 32000, 25, 35),
2748 std::tr1::make_tuple(16000, 32000, 32000, 32000, 25, 0), 2748 std::tr1::make_tuple(16000, 32000, 32000, 32000, 25, 0),
2749 std::tr1::make_tuple(16000, 32000, 16000, 32000, 25, 20), 2749 std::tr1::make_tuple(16000, 32000, 16000, 32000, 25, 20),
2750 std::tr1::make_tuple(16000, 16000, 48000, 16000, 35, 20), 2750 std::tr1::make_tuple(16000, 16000, 48000, 16000, 35, 20),
2751 std::tr1::make_tuple(16000, 16000, 32000, 16000, 40, 20), 2751 std::tr1::make_tuple(16000, 16000, 32000, 16000, 35, 20),
2752 std::tr1::make_tuple(16000, 16000, 16000, 16000, 0, 0))); 2752 std::tr1::make_tuple(16000, 16000, 16000, 16000, 0, 0)));
2753 #endif 2753 #endif
2754 2754
2755 } // namespace 2755 } // namespace
2756 } // namespace webrtc 2756 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698