niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 1 | /* |
andrew@webrtc.org | 63a5098 | 2012-05-02 23:56:37 +0000 | [diff] [blame] | 2 | * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 3 | * |
| 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 |
| 6 | * tree. An additional intellectual property rights grant can be found |
| 7 | * in the file PATENTS. All contributing project authors may |
| 8 | * be found in the AUTHORS file in the root of the source tree. |
| 9 | */ |
| 10 | |
Mirko Bonadei | 92ea95e | 2017-09-15 06:47:31 +0200 | [diff] [blame] | 11 | #include "modules/audio_coding/test/TestVADDTX.h" |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 12 | |
minyue@webrtc.org | 0561716 | 2015-03-03 12:02:30 +0000 | [diff] [blame] | 13 | #include <string> |
kjellander@webrtc.org | 5490c71 | 2011-12-21 13:34:18 +0000 | [diff] [blame] | 14 | |
Niels Möller | 2edab4c | 2018-10-22 09:48:08 +0200 | [diff] [blame] | 15 | #include "absl/strings/match.h" |
Karl Wiberg | 895ce82 | 2018-10-01 17:26:11 +0200 | [diff] [blame] | 16 | #include "api/audio_codecs/audio_decoder_factory_template.h" |
| 17 | #include "api/audio_codecs/audio_encoder_factory_template.h" |
| 18 | #include "api/audio_codecs/ilbc/audio_decoder_ilbc.h" |
| 19 | #include "api/audio_codecs/ilbc/audio_encoder_ilbc.h" |
| 20 | #include "api/audio_codecs/isac/audio_decoder_isac_float.h" |
| 21 | #include "api/audio_codecs/isac/audio_encoder_isac_float.h" |
| 22 | #include "api/audio_codecs/opus/audio_decoder_opus.h" |
| 23 | #include "api/audio_codecs/opus/audio_encoder_opus.h" |
| 24 | #include "modules/audio_coding/codecs/cng/audio_encoder_cng.h" |
Mirko Bonadei | 92ea95e | 2017-09-15 06:47:31 +0200 | [diff] [blame] | 25 | #include "modules/audio_coding/test/PCMFile.h" |
Jonas Olsson | 366a50c | 2018-09-06 13:41:30 +0200 | [diff] [blame] | 26 | #include "rtc_base/strings/string_builder.h" |
Fredrik Solenberg | 657b296 | 2018-12-05 10:30:25 +0100 | [diff] [blame] | 27 | #include "test/gtest.h" |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 28 | #include "test/testsupport/file_utils.h" |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 29 | |
tina.legrand@webrtc.org | 554ae1a | 2011-12-16 10:09:04 +0000 | [diff] [blame] | 30 | namespace webrtc { |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 31 | |
tina.legrand@webrtc.org | d5726a1 | 2013-05-03 07:34:12 +0000 | [diff] [blame] | 32 | ActivityMonitor::ActivityMonitor() { |
minyue@webrtc.org | 0561716 | 2015-03-03 12:02:30 +0000 | [diff] [blame] | 33 | ResetStatistics(); |
tina.legrand@webrtc.org | d5726a1 | 2013-05-03 07:34:12 +0000 | [diff] [blame] | 34 | } |
| 35 | |
Niels Möller | 87e2d78 | 2019-03-07 10:18:23 +0100 | [diff] [blame] | 36 | int32_t ActivityMonitor::InFrameType(AudioFrameType frame_type) { |
Niels Möller | c936cb6 | 2019-03-19 14:10:16 +0100 | [diff] [blame^] | 37 | counter_[static_cast<int>(frame_type)]++; |
tina.legrand@webrtc.org | d5726a1 | 2013-05-03 07:34:12 +0000 | [diff] [blame] | 38 | return 0; |
| 39 | } |
| 40 | |
tina.legrand@webrtc.org | ee92b66 | 2013-08-27 07:33:51 +0000 | [diff] [blame] | 41 | void ActivityMonitor::PrintStatistics() { |
| 42 | printf("\n"); |
Niels Möller | c936cb6 | 2019-03-19 14:10:16 +0100 | [diff] [blame^] | 43 | printf("kEmptyFrame %u\n", |
| 44 | counter_[static_cast<int>(AudioFrameType::kEmptyFrame)]); |
| 45 | printf("kAudioFrameSpeech %u\n", |
| 46 | counter_[static_cast<int>(AudioFrameType::kAudioFrameSpeech)]); |
| 47 | printf("kAudioFrameCN %u\n", |
| 48 | counter_[static_cast<int>(AudioFrameType::kAudioFrameCN)]); |
tina.legrand@webrtc.org | ee92b66 | 2013-08-27 07:33:51 +0000 | [diff] [blame] | 49 | printf("\n\n"); |
tina.legrand@webrtc.org | d5726a1 | 2013-05-03 07:34:12 +0000 | [diff] [blame] | 50 | } |
| 51 | |
| 52 | void ActivityMonitor::ResetStatistics() { |
minyue@webrtc.org | 0561716 | 2015-03-03 12:02:30 +0000 | [diff] [blame] | 53 | memset(counter_, 0, sizeof(counter_)); |
tina.legrand@webrtc.org | d5726a1 | 2013-05-03 07:34:12 +0000 | [diff] [blame] | 54 | } |
| 55 | |
minyue@webrtc.org | 0561716 | 2015-03-03 12:02:30 +0000 | [diff] [blame] | 56 | void ActivityMonitor::GetStatistics(uint32_t* counter) { |
| 57 | memcpy(counter, counter_, sizeof(counter_)); |
| 58 | } |
| 59 | |
| 60 | TestVadDtx::TestVadDtx() |
Karl Wiberg | 895ce82 | 2018-10-01 17:26:11 +0200 | [diff] [blame] | 61 | : encoder_factory_(CreateAudioEncoderFactory<AudioEncoderIlbc, |
| 62 | AudioEncoderIsacFloat, |
| 63 | AudioEncoderOpus>()), |
| 64 | decoder_factory_(CreateAudioDecoderFactory<AudioDecoderIlbc, |
| 65 | AudioDecoderIsacFloat, |
| 66 | AudioDecoderOpus>()), |
| 67 | acm_send_(AudioCodingModule::Create( |
| 68 | AudioCodingModule::Config(decoder_factory_))), |
Karl Wiberg | 5817d3d | 2018-04-06 10:06:42 +0200 | [diff] [blame] | 69 | acm_receive_(AudioCodingModule::Create( |
Karl Wiberg | 895ce82 | 2018-10-01 17:26:11 +0200 | [diff] [blame] | 70 | AudioCodingModule::Config(decoder_factory_))), |
minyue@webrtc.org | 0561716 | 2015-03-03 12:02:30 +0000 | [diff] [blame] | 71 | channel_(new Channel), |
| 72 | monitor_(new ActivityMonitor) { |
| 73 | EXPECT_EQ(0, acm_send_->RegisterTransportCallback(channel_.get())); |
| 74 | channel_->RegisterReceiverACM(acm_receive_.get()); |
| 75 | EXPECT_EQ(0, acm_send_->RegisterVADCallback(monitor_.get())); |
minyue@webrtc.org | 0561716 | 2015-03-03 12:02:30 +0000 | [diff] [blame] | 76 | } |
| 77 | |
Karl Wiberg | 895ce82 | 2018-10-01 17:26:11 +0200 | [diff] [blame] | 78 | bool TestVadDtx::RegisterCodec(const SdpAudioFormat& codec_format, |
| 79 | absl::optional<Vad::Aggressiveness> vad_mode) { |
| 80 | constexpr int payload_type = 17, cn_payload_type = 117; |
| 81 | bool added_comfort_noise = false; |
| 82 | |
| 83 | auto encoder = encoder_factory_->MakeAudioEncoder(payload_type, codec_format, |
| 84 | absl::nullopt); |
| 85 | if (vad_mode.has_value() && |
Niels Möller | 2edab4c | 2018-10-22 09:48:08 +0200 | [diff] [blame] | 86 | !absl::EqualsIgnoreCase(codec_format.name, "opus")) { |
Karl Wiberg | 2365936 | 2018-11-01 11:13:44 +0100 | [diff] [blame] | 87 | AudioEncoderCngConfig config; |
Karl Wiberg | 895ce82 | 2018-10-01 17:26:11 +0200 | [diff] [blame] | 88 | config.speech_encoder = std::move(encoder); |
| 89 | config.num_channels = 1; |
| 90 | config.payload_type = cn_payload_type; |
| 91 | config.vad_mode = vad_mode.value(); |
Karl Wiberg | 2365936 | 2018-11-01 11:13:44 +0100 | [diff] [blame] | 92 | encoder = CreateComfortNoiseEncoder(std::move(config)); |
Karl Wiberg | 895ce82 | 2018-10-01 17:26:11 +0200 | [diff] [blame] | 93 | added_comfort_noise = true; |
| 94 | } |
| 95 | channel_->SetIsStereo(encoder->NumChannels() > 1); |
| 96 | acm_send_->SetEncoder(std::move(encoder)); |
| 97 | |
Fredrik Solenberg | 657b296 | 2018-12-05 10:30:25 +0100 | [diff] [blame] | 98 | std::map<int, SdpAudioFormat> receive_codecs = {{payload_type, codec_format}}; |
| 99 | acm_receive_->SetReceiveCodecs(receive_codecs); |
| 100 | |
Karl Wiberg | 895ce82 | 2018-10-01 17:26:11 +0200 | [diff] [blame] | 101 | return added_comfort_noise; |
minyue@webrtc.org | 0561716 | 2015-03-03 12:02:30 +0000 | [diff] [blame] | 102 | } |
| 103 | |
| 104 | // Encoding a file and see if the numbers that various packets occur follow |
| 105 | // the expectation. |
Yves Gerey | 665174f | 2018-06-19 15:03:05 +0200 | [diff] [blame] | 106 | void TestVadDtx::Run(std::string in_filename, |
| 107 | int frequency, |
| 108 | int channels, |
| 109 | std::string out_filename, |
| 110 | bool append, |
minyue@webrtc.org | 0561716 | 2015-03-03 12:02:30 +0000 | [diff] [blame] | 111 | const int* expects) { |
| 112 | monitor_->ResetStatistics(); |
| 113 | |
| 114 | PCMFile in_file; |
| 115 | in_file.Open(in_filename, frequency, "rb"); |
| 116 | in_file.ReadStereo(channels > 1); |
Henrik Lundin | 4d68208 | 2015-12-10 16:24:39 +0100 | [diff] [blame] | 117 | // Set test length to 1000 ms (100 blocks of 10 ms each). |
| 118 | in_file.SetNum10MsBlocksToRead(100); |
| 119 | // Fast-forward both files 500 ms (50 blocks). The first second of the file is |
| 120 | // silence, but we want to keep half of that to test silence periods. |
| 121 | in_file.FastForward(50); |
minyue@webrtc.org | 0561716 | 2015-03-03 12:02:30 +0000 | [diff] [blame] | 122 | |
| 123 | PCMFile out_file; |
| 124 | if (append) { |
| 125 | out_file.Open(out_filename, kOutputFreqHz, "ab"); |
| 126 | } else { |
| 127 | out_file.Open(out_filename, kOutputFreqHz, "wb"); |
tina.legrand@webrtc.org | d5726a1 | 2013-05-03 07:34:12 +0000 | [diff] [blame] | 128 | } |
minyue@webrtc.org | 0561716 | 2015-03-03 12:02:30 +0000 | [diff] [blame] | 129 | |
| 130 | uint16_t frame_size_samples = in_file.PayloadLength10Ms(); |
minyue@webrtc.org | 0561716 | 2015-03-03 12:02:30 +0000 | [diff] [blame] | 131 | AudioFrame audio_frame; |
| 132 | while (!in_file.EndOfFile()) { |
| 133 | in_file.Read10MsData(audio_frame); |
ossu | 63fb95a | 2016-07-06 09:34:22 -0700 | [diff] [blame] | 134 | audio_frame.timestamp_ = time_stamp_; |
| 135 | time_stamp_ += frame_size_samples; |
minyue@webrtc.org | 0561716 | 2015-03-03 12:02:30 +0000 | [diff] [blame] | 136 | EXPECT_GE(acm_send_->Add10MsData(audio_frame), 0); |
henrik.lundin | d4ccb00 | 2016-05-17 12:21:55 -0700 | [diff] [blame] | 137 | bool muted; |
| 138 | acm_receive_->PlayoutData10Ms(kOutputFreqHz, &audio_frame, &muted); |
| 139 | ASSERT_FALSE(muted); |
minyue@webrtc.org | 0561716 | 2015-03-03 12:02:30 +0000 | [diff] [blame] | 140 | out_file.Write10MsData(audio_frame); |
| 141 | } |
| 142 | |
| 143 | in_file.Close(); |
| 144 | out_file.Close(); |
| 145 | |
| 146 | #ifdef PRINT_STAT |
| 147 | monitor_->PrintStatistics(); |
| 148 | #endif |
| 149 | |
Niels Möller | c936cb6 | 2019-03-19 14:10:16 +0100 | [diff] [blame^] | 150 | uint32_t stats[3]; |
minyue@webrtc.org | 0561716 | 2015-03-03 12:02:30 +0000 | [diff] [blame] | 151 | monitor_->GetStatistics(stats); |
| 152 | monitor_->ResetStatistics(); |
| 153 | |
henrik.lundin@webrtc.org | e9217b4 | 2015-03-06 07:50:34 +0000 | [diff] [blame] | 154 | for (const auto& st : stats) { |
| 155 | int i = &st - stats; // Calculate the current position in stats. |
minyue@webrtc.org | 0561716 | 2015-03-03 12:02:30 +0000 | [diff] [blame] | 156 | switch (expects[i]) { |
| 157 | case 0: { |
henrik.lundin@webrtc.org | e9217b4 | 2015-03-06 07:50:34 +0000 | [diff] [blame] | 158 | EXPECT_EQ(0u, st) << "stats[" << i << "] error."; |
minyue@webrtc.org | 0561716 | 2015-03-03 12:02:30 +0000 | [diff] [blame] | 159 | break; |
| 160 | } |
| 161 | case 1: { |
henrik.lundin@webrtc.org | e9217b4 | 2015-03-06 07:50:34 +0000 | [diff] [blame] | 162 | EXPECT_GT(st, 0u) << "stats[" << i << "] error."; |
minyue@webrtc.org | 0561716 | 2015-03-03 12:02:30 +0000 | [diff] [blame] | 163 | break; |
| 164 | } |
| 165 | } |
| 166 | } |
| 167 | } |
| 168 | |
| 169 | // Following is the implementation of TestWebRtcVadDtx. |
Karl Wiberg | 895ce82 | 2018-10-01 17:26:11 +0200 | [diff] [blame] | 170 | TestWebRtcVadDtx::TestWebRtcVadDtx() : output_file_num_(0) {} |
minyue@webrtc.org | 0561716 | 2015-03-03 12:02:30 +0000 | [diff] [blame] | 171 | |
| 172 | void TestWebRtcVadDtx::Perform() { |
Karl Wiberg | 895ce82 | 2018-10-01 17:26:11 +0200 | [diff] [blame] | 173 | RunTestCases({"ISAC", 16000, 1}); |
| 174 | RunTestCases({"ISAC", 32000, 1}); |
| 175 | RunTestCases({"ILBC", 8000, 1}); |
| 176 | RunTestCases({"opus", 48000, 2}); |
minyue@webrtc.org | 0561716 | 2015-03-03 12:02:30 +0000 | [diff] [blame] | 177 | } |
| 178 | |
| 179 | // Test various configurations on VAD/DTX. |
Karl Wiberg | 895ce82 | 2018-10-01 17:26:11 +0200 | [diff] [blame] | 180 | void TestWebRtcVadDtx::RunTestCases(const SdpAudioFormat& codec_format) { |
| 181 | Test(/*new_outfile=*/true, |
| 182 | /*expect_dtx_enabled=*/RegisterCodec(codec_format, absl::nullopt)); |
minyue@webrtc.org | 0561716 | 2015-03-03 12:02:30 +0000 | [diff] [blame] | 183 | |
Karl Wiberg | 895ce82 | 2018-10-01 17:26:11 +0200 | [diff] [blame] | 184 | Test(/*new_outfile=*/false, |
| 185 | /*expect_dtx_enabled=*/RegisterCodec(codec_format, Vad::kVadAggressive)); |
minyue@webrtc.org | 0561716 | 2015-03-03 12:02:30 +0000 | [diff] [blame] | 186 | |
Karl Wiberg | 895ce82 | 2018-10-01 17:26:11 +0200 | [diff] [blame] | 187 | Test(/*new_outfile=*/false, |
| 188 | /*expect_dtx_enabled=*/RegisterCodec(codec_format, Vad::kVadLowBitrate)); |
minyue@webrtc.org | 0561716 | 2015-03-03 12:02:30 +0000 | [diff] [blame] | 189 | |
Karl Wiberg | 895ce82 | 2018-10-01 17:26:11 +0200 | [diff] [blame] | 190 | Test(/*new_outfile=*/false, /*expect_dtx_enabled=*/RegisterCodec( |
| 191 | codec_format, Vad::kVadVeryAggressive)); |
minyue@webrtc.org | 0561716 | 2015-03-03 12:02:30 +0000 | [diff] [blame] | 192 | |
Karl Wiberg | 895ce82 | 2018-10-01 17:26:11 +0200 | [diff] [blame] | 193 | Test(/*new_outfile=*/false, |
| 194 | /*expect_dtx_enabled=*/RegisterCodec(codec_format, Vad::kVadNormal)); |
minyue@webrtc.org | 0561716 | 2015-03-03 12:02:30 +0000 | [diff] [blame] | 195 | } |
| 196 | |
| 197 | // Set the expectation and run the test. |
Karl Wiberg | 895ce82 | 2018-10-01 17:26:11 +0200 | [diff] [blame] | 198 | void TestWebRtcVadDtx::Test(bool new_outfile, bool expect_dtx_enabled) { |
| 199 | int expects[] = {-1, 1, expect_dtx_enabled, 0, 0}; |
minyue@webrtc.org | 0561716 | 2015-03-03 12:02:30 +0000 | [diff] [blame] | 200 | if (new_outfile) { |
| 201 | output_file_num_++; |
| 202 | } |
Jonas Olsson | 366a50c | 2018-09-06 13:41:30 +0200 | [diff] [blame] | 203 | rtc::StringBuilder out_filename; |
Yves Gerey | 665174f | 2018-06-19 15:03:05 +0200 | [diff] [blame] | 204 | out_filename << webrtc::test::OutputPath() << "testWebRtcVadDtx_outFile_" |
| 205 | << output_file_num_ << ".pcm"; |
| 206 | Run(webrtc::test::ResourcePath("audio_coding/testfile32kHz", "pcm"), 32000, 1, |
| 207 | out_filename.str(), !new_outfile, expects); |
minyue@webrtc.org | 0561716 | 2015-03-03 12:02:30 +0000 | [diff] [blame] | 208 | } |
| 209 | |
minyue@webrtc.org | 0561716 | 2015-03-03 12:02:30 +0000 | [diff] [blame] | 210 | // Following is the implementation of TestOpusDtx. |
| 211 | void TestOpusDtx::Perform() { |
kwiberg | 4430763 | 2015-12-16 06:24:05 -0800 | [diff] [blame] | 212 | // If we set other codec than Opus, DTX cannot be switched on. |
Karl Wiberg | 895ce82 | 2018-10-01 17:26:11 +0200 | [diff] [blame] | 213 | RegisterCodec({"ISAC", 16000, 1}, absl::nullopt); |
Minyue Li | 092041c | 2015-05-11 12:19:35 +0200 | [diff] [blame] | 214 | EXPECT_EQ(-1, acm_send_->EnableOpusDtx()); |
kwiberg | 4430763 | 2015-12-16 06:24:05 -0800 | [diff] [blame] | 215 | EXPECT_EQ(0, acm_send_->DisableOpusDtx()); |
minyue@webrtc.org | e16bfde | 2015-03-12 15:28:41 +0000 | [diff] [blame] | 216 | |
henrik.lundin@webrtc.org | e9217b4 | 2015-03-06 07:50:34 +0000 | [diff] [blame] | 217 | int expects[] = {0, 1, 0, 0, 0}; |
minyue@webrtc.org | 0561716 | 2015-03-03 12:02:30 +0000 | [diff] [blame] | 218 | |
| 219 | // Register Opus as send codec |
Yves Gerey | 665174f | 2018-06-19 15:03:05 +0200 | [diff] [blame] | 220 | std::string out_filename = |
| 221 | webrtc::test::OutputPath() + "testOpusDtx_outFile_mono.pcm"; |
Karl Wiberg | 895ce82 | 2018-10-01 17:26:11 +0200 | [diff] [blame] | 222 | RegisterCodec({"opus", 48000, 2}, absl::nullopt); |
minyue@webrtc.org | 0561716 | 2015-03-03 12:02:30 +0000 | [diff] [blame] | 223 | EXPECT_EQ(0, acm_send_->DisableOpusDtx()); |
| 224 | |
Yves Gerey | 665174f | 2018-06-19 15:03:05 +0200 | [diff] [blame] | 225 | Run(webrtc::test::ResourcePath("audio_coding/testfile32kHz", "pcm"), 32000, 1, |
| 226 | out_filename, false, expects); |
minyue@webrtc.org | 0561716 | 2015-03-03 12:02:30 +0000 | [diff] [blame] | 227 | |
Minyue Li | 092041c | 2015-05-11 12:19:35 +0200 | [diff] [blame] | 228 | EXPECT_EQ(0, acm_send_->EnableOpusDtx()); |
pbos | 22993e1 | 2015-10-19 02:39:06 -0700 | [diff] [blame] | 229 | expects[kEmptyFrame] = 1; |
Gustaf Ullberg | 36de62e | 2017-11-20 14:55:41 +0100 | [diff] [blame] | 230 | expects[kAudioFrameCN] = 1; |
Yves Gerey | 665174f | 2018-06-19 15:03:05 +0200 | [diff] [blame] | 231 | Run(webrtc::test::ResourcePath("audio_coding/testfile32kHz", "pcm"), 32000, 1, |
| 232 | out_filename, true, expects); |
minyue@webrtc.org | 0561716 | 2015-03-03 12:02:30 +0000 | [diff] [blame] | 233 | |
| 234 | // Register stereo Opus as send codec |
| 235 | out_filename = webrtc::test::OutputPath() + "testOpusDtx_outFile_stereo.pcm"; |
Karl Wiberg | 895ce82 | 2018-10-01 17:26:11 +0200 | [diff] [blame] | 236 | RegisterCodec({"opus", 48000, 2, {{"stereo", "1"}}}, absl::nullopt); |
minyue@webrtc.org | 0561716 | 2015-03-03 12:02:30 +0000 | [diff] [blame] | 237 | EXPECT_EQ(0, acm_send_->DisableOpusDtx()); |
pbos | 22993e1 | 2015-10-19 02:39:06 -0700 | [diff] [blame] | 238 | expects[kEmptyFrame] = 0; |
Gustaf Ullberg | 36de62e | 2017-11-20 14:55:41 +0100 | [diff] [blame] | 239 | expects[kAudioFrameCN] = 0; |
Yves Gerey | 665174f | 2018-06-19 15:03:05 +0200 | [diff] [blame] | 240 | Run(webrtc::test::ResourcePath("audio_coding/teststereo32kHz", "pcm"), 32000, |
| 241 | 2, out_filename, false, expects); |
minyue@webrtc.org | 0561716 | 2015-03-03 12:02:30 +0000 | [diff] [blame] | 242 | |
Minyue Li | 092041c | 2015-05-11 12:19:35 +0200 | [diff] [blame] | 243 | EXPECT_EQ(0, acm_send_->EnableOpusDtx()); |
minyue@webrtc.org | 0561716 | 2015-03-03 12:02:30 +0000 | [diff] [blame] | 244 | |
pbos | 22993e1 | 2015-10-19 02:39:06 -0700 | [diff] [blame] | 245 | expects[kEmptyFrame] = 1; |
Gustaf Ullberg | 36de62e | 2017-11-20 14:55:41 +0100 | [diff] [blame] | 246 | expects[kAudioFrameCN] = 1; |
Yves Gerey | 665174f | 2018-06-19 15:03:05 +0200 | [diff] [blame] | 247 | Run(webrtc::test::ResourcePath("audio_coding/teststereo32kHz", "pcm"), 32000, |
| 248 | 2, out_filename, true, expects); |
tina.legrand@webrtc.org | d5726a1 | 2013-05-03 07:34:12 +0000 | [diff] [blame] | 249 | } |
| 250 | |
| 251 | } // namespace webrtc |