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

Side by Side Diff: webrtc/modules/audio_coding/test/TestVADDTX.cc

Issue 1985743002: Propagate muted parameter to VoE::Channel (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Resurrect the PlayoutData10Ms(int, AudioFrame*) method Created 4 years, 7 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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 } 101 }
102 102
103 uint16_t frame_size_samples = in_file.PayloadLength10Ms(); 103 uint16_t frame_size_samples = in_file.PayloadLength10Ms();
104 uint32_t time_stamp = 0x12345678; 104 uint32_t time_stamp = 0x12345678;
105 AudioFrame audio_frame; 105 AudioFrame audio_frame;
106 while (!in_file.EndOfFile()) { 106 while (!in_file.EndOfFile()) {
107 in_file.Read10MsData(audio_frame); 107 in_file.Read10MsData(audio_frame);
108 audio_frame.timestamp_ = time_stamp; 108 audio_frame.timestamp_ = time_stamp;
109 time_stamp += frame_size_samples; 109 time_stamp += frame_size_samples;
110 EXPECT_GE(acm_send_->Add10MsData(audio_frame), 0); 110 EXPECT_GE(acm_send_->Add10MsData(audio_frame), 0);
111 acm_receive_->PlayoutData10Ms(kOutputFreqHz, &audio_frame); 111 bool muted;
112 acm_receive_->PlayoutData10Ms(kOutputFreqHz, &audio_frame, &muted);
113 ASSERT_FALSE(muted);
112 out_file.Write10MsData(audio_frame); 114 out_file.Write10MsData(audio_frame);
113 } 115 }
114 116
115 in_file.Close(); 117 in_file.Close();
116 out_file.Close(); 118 out_file.Close();
117 119
118 #ifdef PRINT_STAT 120 #ifdef PRINT_STAT
119 monitor_->PrintStatistics(); 121 monitor_->PrintStatistics();
120 #endif 122 #endif
121 123
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 269
268 EXPECT_EQ(0, acm_send_->EnableOpusDtx()); 270 EXPECT_EQ(0, acm_send_->EnableOpusDtx());
269 271
270 expects[kEmptyFrame] = 1; 272 expects[kEmptyFrame] = 1;
271 Run(webrtc::test::ResourcePath("audio_coding/teststereo32kHz", "pcm"), 273 Run(webrtc::test::ResourcePath("audio_coding/teststereo32kHz", "pcm"),
272 32000, 2, out_filename, true, expects); 274 32000, 2, out_filename, true, expects);
273 #endif 275 #endif
274 } 276 }
275 277
276 } // namespace webrtc 278 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/audio_coding/test/TestStereo.cc ('k') | webrtc/modules/audio_coding/test/TwoWayCommunication.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698