niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 1 | /* |
tina.legrand@webrtc.org | ae1c454 | 2012-03-12 08:41:30 +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/EncodeDecodeTest.h" |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 12 | |
tina.legrand@webrtc.org | 554ae1a | 2011-12-16 10:09:04 +0000 | [diff] [blame] | 13 | #include <stdio.h> |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 14 | #include <stdlib.h> |
Jonas Olsson | a4d8737 | 2019-07-05 19:08:33 +0200 | [diff] [blame] | 15 | |
Yves Gerey | 665174f | 2018-06-19 15:03:05 +0200 | [diff] [blame] | 16 | #include <memory> |
tina.legrand@webrtc.org | 5e7ca60 | 2012-06-12 07:16:24 +0000 | [diff] [blame] | 17 | |
Karl Wiberg | 5817d3d | 2018-04-06 10:06:42 +0200 | [diff] [blame] | 18 | #include "api/audio_codecs/builtin_audio_decoder_factory.h" |
Karl Wiberg | 658a552 | 2018-08-15 15:20:49 +0200 | [diff] [blame] | 19 | #include "api/audio_codecs/builtin_audio_encoder_factory.h" |
Mirko Bonadei | 92ea95e | 2017-09-15 06:47:31 +0200 | [diff] [blame] | 20 | #include "modules/audio_coding/include/audio_coding_module.h" |
Jonas Olsson | 366a50c | 2018-09-06 13:41:30 +0200 | [diff] [blame] | 21 | #include "rtc_base/strings/string_builder.h" |
Mirko Bonadei | 92ea95e | 2017-09-15 06:47:31 +0200 | [diff] [blame] | 22 | #include "test/gtest.h" |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 23 | #include "test/testsupport/file_utils.h" |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 24 | |
tina.legrand@webrtc.org | 554ae1a | 2011-12-16 10:09:04 +0000 | [diff] [blame] | 25 | namespace webrtc { |
| 26 | |
Per Åhgren | d82a02c | 2020-03-12 11:53:30 +0100 | [diff] [blame] | 27 | namespace { |
| 28 | // Buffer size for stereo 48 kHz audio. |
| 29 | constexpr size_t kWebRtc10MsPcmAudio = 960; |
| 30 | |
| 31 | } // namespace |
| 32 | |
Jonas Olsson | a4d8737 | 2019-07-05 19:08:33 +0200 | [diff] [blame] | 33 | TestPacketization::TestPacketization(RTPStream* rtpStream, uint16_t frequency) |
| 34 | : _rtpStream(rtpStream), _frequency(frequency), _seqNo(0) {} |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 35 | |
Jonas Olsson | a4d8737 | 2019-07-05 19:08:33 +0200 | [diff] [blame] | 36 | TestPacketization::~TestPacketization() {} |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 37 | |
Niels Möller | c35b6e6 | 2019-04-25 16:31:18 +0200 | [diff] [blame] | 38 | int32_t TestPacketization::SendData(const AudioFrameType /* frameType */, |
| 39 | const uint8_t payloadType, |
| 40 | const uint32_t timeStamp, |
| 41 | const uint8_t* payloadData, |
Minyue Li | ff0e4db | 2020-01-23 13:45:50 +0100 | [diff] [blame] | 42 | const size_t payloadSize, |
| 43 | int64_t absolute_capture_timestamp_ms) { |
tina.legrand@webrtc.org | 554ae1a | 2011-12-16 10:09:04 +0000 | [diff] [blame] | 44 | _rtpStream->Write(payloadType, timeStamp, _seqNo++, payloadData, payloadSize, |
| 45 | _frequency); |
| 46 | return 1; |
| 47 | } |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 48 | |
tina.legrand@webrtc.org | 554ae1a | 2011-12-16 10:09:04 +0000 | [diff] [blame] | 49 | Sender::Sender() |
Jonas Olsson | a4d8737 | 2019-07-05 19:08:33 +0200 | [diff] [blame] | 50 | : _acm(NULL), _pcmFile(), _audioFrame(), _packetization(NULL) {} |
tina.legrand@webrtc.org | 554ae1a | 2011-12-16 10:09:04 +0000 | [diff] [blame] | 51 | |
Jonas Olsson | a4d8737 | 2019-07-05 19:08:33 +0200 | [diff] [blame] | 52 | void Sender::Setup(AudioCodingModule* acm, |
| 53 | RTPStream* rtpStream, |
| 54 | std::string in_file_name, |
| 55 | int in_sample_rate, |
| 56 | int payload_type, |
| 57 | SdpAudioFormat format) { |
tina.legrand@webrtc.org | ba46804 | 2012-08-17 10:38:28 +0000 | [diff] [blame] | 58 | // Open input file |
minyue@webrtc.org | aa5ea1c | 2014-05-23 15:16:51 +0000 | [diff] [blame] | 59 | const std::string file_name = webrtc::test::ResourcePath(in_file_name, "pcm"); |
Fredrik Solenberg | 657b296 | 2018-12-05 10:30:25 +0100 | [diff] [blame] | 60 | _pcmFile.Open(file_name, in_sample_rate, "rb"); |
| 61 | if (format.num_channels == 2) { |
minyue@webrtc.org | aa5ea1c | 2014-05-23 15:16:51 +0000 | [diff] [blame] | 62 | _pcmFile.ReadStereo(true); |
| 63 | } |
Henrik Lundin | 4d68208 | 2015-12-10 16:24:39 +0100 | [diff] [blame] | 64 | // Set test length to 500 ms (50 blocks of 10 ms each). |
| 65 | _pcmFile.SetNum10MsBlocksToRead(50); |
| 66 | // Fast-forward 1 second (100 blocks) since the file starts with silence. |
| 67 | _pcmFile.FastForward(100); |
tina.legrand@webrtc.org | ba46804 | 2012-08-17 10:38:28 +0000 | [diff] [blame] | 68 | |
Karl Wiberg | 658a552 | 2018-08-15 15:20:49 +0200 | [diff] [blame] | 69 | acm->SetEncoder(CreateBuiltinAudioEncoderFactory()->MakeAudioEncoder( |
Fredrik Solenberg | 657b296 | 2018-12-05 10:30:25 +0100 | [diff] [blame] | 70 | payload_type, format, absl::nullopt)); |
| 71 | _packetization = new TestPacketization(rtpStream, format.clockrate_hz); |
tina.legrand@webrtc.org | ee92b66 | 2013-08-27 07:33:51 +0000 | [diff] [blame] | 72 | EXPECT_EQ(0, acm->RegisterTransportCallback(_packetization)); |
tina.legrand@webrtc.org | 554ae1a | 2011-12-16 10:09:04 +0000 | [diff] [blame] | 73 | |
tina.legrand@webrtc.org | ba46804 | 2012-08-17 10:38:28 +0000 | [diff] [blame] | 74 | _acm = acm; |
| 75 | } |
tina.legrand@webrtc.org | 554ae1a | 2011-12-16 10:09:04 +0000 | [diff] [blame] | 76 | |
| 77 | void Sender::Teardown() { |
| 78 | _pcmFile.Close(); |
| 79 | delete _packetization; |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 80 | } |
| 81 | |
tina.legrand@webrtc.org | 554ae1a | 2011-12-16 10:09:04 +0000 | [diff] [blame] | 82 | bool Sender::Add10MsData() { |
| 83 | if (!_pcmFile.EndOfFile()) { |
tina.legrand@webrtc.org | ee92b66 | 2013-08-27 07:33:51 +0000 | [diff] [blame] | 84 | EXPECT_GT(_pcmFile.Read10MsData(_audioFrame), 0); |
pbos@webrtc.org | 0946a56 | 2013-04-09 00:28:06 +0000 | [diff] [blame] | 85 | int32_t ok = _acm->Add10MsData(_audioFrame); |
henrik.lundin@webrtc.org | f56c162 | 2015-03-02 12:29:30 +0000 | [diff] [blame] | 86 | EXPECT_GE(ok, 0); |
| 87 | return ok >= 0 ? true : false; |
tina.legrand@webrtc.org | 554ae1a | 2011-12-16 10:09:04 +0000 | [diff] [blame] | 88 | } |
| 89 | return false; |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 90 | } |
| 91 | |
tina.legrand@webrtc.org | 554ae1a | 2011-12-16 10:09:04 +0000 | [diff] [blame] | 92 | void Sender::Run() { |
| 93 | while (true) { |
| 94 | if (!Add10MsData()) { |
| 95 | break; |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 96 | } |
tina.legrand@webrtc.org | 554ae1a | 2011-12-16 10:09:04 +0000 | [diff] [blame] | 97 | } |
| 98 | } |
| 99 | |
| 100 | Receiver::Receiver() |
Per Åhgren | d82a02c | 2020-03-12 11:53:30 +0100 | [diff] [blame] | 101 | : _playoutLengthSmpls(kWebRtc10MsPcmAudio), |
Jonas Olsson | a4d8737 | 2019-07-05 19:08:33 +0200 | [diff] [blame] | 102 | _payloadSizeBytes(MAX_INCOMING_PAYLOAD) {} |
tina.legrand@webrtc.org | 554ae1a | 2011-12-16 10:09:04 +0000 | [diff] [blame] | 103 | |
Jonas Olsson | a4d8737 | 2019-07-05 19:08:33 +0200 | [diff] [blame] | 104 | void Receiver::Setup(AudioCodingModule* acm, |
| 105 | RTPStream* rtpStream, |
| 106 | std::string out_file_name, |
| 107 | size_t channels, |
| 108 | int file_num) { |
tina.legrand@webrtc.org | ee92b66 | 2013-08-27 07:33:51 +0000 | [diff] [blame] | 109 | EXPECT_EQ(0, acm->InitializeReceiver()); |
tina.legrand@webrtc.org | 554ae1a | 2011-12-16 10:09:04 +0000 | [diff] [blame] | 110 | |
Fredrik Solenberg | 657b296 | 2018-12-05 10:30:25 +0100 | [diff] [blame] | 111 | if (channels == 1) { |
| 112 | acm->SetReceiveCodecs({{103, {"ISAC", 16000, 1}}, |
| 113 | {104, {"ISAC", 32000, 1}}, |
| 114 | {107, {"L16", 8000, 1}}, |
| 115 | {108, {"L16", 16000, 1}}, |
| 116 | {109, {"L16", 32000, 1}}, |
| 117 | {0, {"PCMU", 8000, 1}}, |
| 118 | {8, {"PCMA", 8000, 1}}, |
| 119 | {102, {"ILBC", 8000, 1}}, |
| 120 | {9, {"G722", 8000, 1}}, |
| 121 | {120, {"OPUS", 48000, 2}}, |
| 122 | {13, {"CN", 8000, 1}}, |
| 123 | {98, {"CN", 16000, 1}}, |
| 124 | {99, {"CN", 32000, 1}}}); |
| 125 | } else { |
| 126 | ASSERT_EQ(channels, 2u); |
| 127 | acm->SetReceiveCodecs({{111, {"L16", 8000, 2}}, |
| 128 | {112, {"L16", 16000, 2}}, |
| 129 | {113, {"L16", 32000, 2}}, |
| 130 | {110, {"PCMU", 8000, 2}}, |
| 131 | {118, {"PCMA", 8000, 2}}, |
| 132 | {119, {"G722", 8000, 2}}, |
| 133 | {120, {"OPUS", 48000, 2, {{"stereo", "1"}}}}}); |
tina.legrand@webrtc.org | 554ae1a | 2011-12-16 10:09:04 +0000 | [diff] [blame] | 134 | } |
phoglund@webrtc.org | d1a860b | 2012-01-26 14:49:28 +0000 | [diff] [blame] | 135 | |
tina.legrand@webrtc.org | 554ae1a | 2011-12-16 10:09:04 +0000 | [diff] [blame] | 136 | int playSampFreq; |
tina.legrand@webrtc.org | ba46804 | 2012-08-17 10:38:28 +0000 | [diff] [blame] | 137 | std::string file_name; |
Jonas Olsson | 366a50c | 2018-09-06 13:41:30 +0200 | [diff] [blame] | 138 | rtc::StringBuilder file_stream; |
Fredrik Solenberg | 657b296 | 2018-12-05 10:30:25 +0100 | [diff] [blame] | 139 | file_stream << webrtc::test::OutputPath() << out_file_name << file_num |
| 140 | << ".pcm"; |
tina.legrand@webrtc.org | ba46804 | 2012-08-17 10:38:28 +0000 | [diff] [blame] | 141 | file_name = file_stream.str(); |
| 142 | _rtpStream = rtpStream; |
tina.legrand@webrtc.org | 554ae1a | 2011-12-16 10:09:04 +0000 | [diff] [blame] | 143 | |
Karl Wiberg | 88aee28 | 2018-06-14 13:12:05 +0200 | [diff] [blame] | 144 | playSampFreq = 32000; |
| 145 | _pcmFile.Open(file_name, 32000, "wb+"); |
phoglund@webrtc.org | d1a860b | 2012-01-26 14:49:28 +0000 | [diff] [blame] | 146 | |
tina.legrand@webrtc.org | 554ae1a | 2011-12-16 10:09:04 +0000 | [diff] [blame] | 147 | _realPayloadSizeBytes = 0; |
Per Åhgren | d82a02c | 2020-03-12 11:53:30 +0100 | [diff] [blame] | 148 | _playoutBuffer = new int16_t[kWebRtc10MsPcmAudio]; |
tina.legrand@webrtc.org | 554ae1a | 2011-12-16 10:09:04 +0000 | [diff] [blame] | 149 | _frequency = playSampFreq; |
| 150 | _acm = acm; |
| 151 | _firstTime = true; |
| 152 | } |
| 153 | |
| 154 | void Receiver::Teardown() { |
tina.legrand@webrtc.org | d5726a1 | 2013-05-03 07:34:12 +0000 | [diff] [blame] | 155 | delete[] _playoutBuffer; |
tina.legrand@webrtc.org | 554ae1a | 2011-12-16 10:09:04 +0000 | [diff] [blame] | 156 | _pcmFile.Close(); |
tina.legrand@webrtc.org | 554ae1a | 2011-12-16 10:09:04 +0000 | [diff] [blame] | 157 | } |
| 158 | |
| 159 | bool Receiver::IncomingPacket() { |
| 160 | if (!_rtpStream->EndOfFile()) { |
| 161 | if (_firstTime) { |
| 162 | _firstTime = false; |
Niels Möller | bf47495 | 2019-02-18 12:00:06 +0100 | [diff] [blame] | 163 | _realPayloadSizeBytes = _rtpStream->Read(&_rtpHeader, _incomingPayload, |
tina.legrand@webrtc.org | 554ae1a | 2011-12-16 10:09:04 +0000 | [diff] [blame] | 164 | _payloadSizeBytes, &_nextTime); |
andrew@webrtc.org | 975e4a3 | 2012-01-17 19:27:33 +0000 | [diff] [blame] | 165 | if (_realPayloadSizeBytes == 0) { |
| 166 | if (_rtpStream->EndOfFile()) { |
| 167 | _firstTime = true; |
| 168 | return true; |
| 169 | } else { |
andrew@webrtc.org | 975e4a3 | 2012-01-17 19:27:33 +0000 | [diff] [blame] | 170 | return false; |
| 171 | } |
tina.legrand@webrtc.org | 554ae1a | 2011-12-16 10:09:04 +0000 | [diff] [blame] | 172 | } |
tina.legrand@webrtc.org | d5726a1 | 2013-05-03 07:34:12 +0000 | [diff] [blame] | 173 | } |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 174 | |
tina.legrand@webrtc.org | ee92b66 | 2013-08-27 07:33:51 +0000 | [diff] [blame] | 175 | EXPECT_EQ(0, _acm->IncomingPacket(_incomingPayload, _realPayloadSizeBytes, |
Niels Möller | bf47495 | 2019-02-18 12:00:06 +0100 | [diff] [blame] | 176 | _rtpHeader)); |
| 177 | _realPayloadSizeBytes = _rtpStream->Read(&_rtpHeader, _incomingPayload, |
tina.legrand@webrtc.org | d5726a1 | 2013-05-03 07:34:12 +0000 | [diff] [blame] | 178 | _payloadSizeBytes, &_nextTime); |
tina.legrand@webrtc.org | 554ae1a | 2011-12-16 10:09:04 +0000 | [diff] [blame] | 179 | if (_realPayloadSizeBytes == 0 && _rtpStream->EndOfFile()) { |
| 180 | _firstTime = true; |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 181 | } |
tina.legrand@webrtc.org | 554ae1a | 2011-12-16 10:09:04 +0000 | [diff] [blame] | 182 | } |
| 183 | return true; |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 184 | } |
| 185 | |
tina.legrand@webrtc.org | 554ae1a | 2011-12-16 10:09:04 +0000 | [diff] [blame] | 186 | bool Receiver::PlayoutData() { |
| 187 | AudioFrame audioFrame; |
henrik.lundin | d4ccb00 | 2016-05-17 12:21:55 -0700 | [diff] [blame] | 188 | bool muted; |
| 189 | int32_t ok = _acm->PlayoutData10Ms(_frequency, &audioFrame, &muted); |
| 190 | if (muted) { |
| 191 | ADD_FAILURE(); |
| 192 | return false; |
| 193 | } |
tina.legrand@webrtc.org | ee92b66 | 2013-08-27 07:33:51 +0000 | [diff] [blame] | 194 | EXPECT_EQ(0, ok); |
Jonas Olsson | a4d8737 | 2019-07-05 19:08:33 +0200 | [diff] [blame] | 195 | if (ok < 0) { |
tina.legrand@webrtc.org | ee92b66 | 2013-08-27 07:33:51 +0000 | [diff] [blame] | 196 | return false; |
tina.legrand@webrtc.org | 554ae1a | 2011-12-16 10:09:04 +0000 | [diff] [blame] | 197 | } |
| 198 | if (_playoutLengthSmpls == 0) { |
| 199 | return false; |
| 200 | } |
Jonas Olsson | a4d8737 | 2019-07-05 19:08:33 +0200 | [diff] [blame] | 201 | _pcmFile.Write10MsData(audioFrame.data(), audioFrame.samples_per_channel_ * |
| 202 | audioFrame.num_channels_); |
tina.legrand@webrtc.org | 554ae1a | 2011-12-16 10:09:04 +0000 | [diff] [blame] | 203 | return true; |
| 204 | } |
| 205 | |
| 206 | void Receiver::Run() { |
pbos@webrtc.org | 0946a56 | 2013-04-09 00:28:06 +0000 | [diff] [blame] | 207 | uint8_t counter500Ms = 50; |
| 208 | uint32_t clock = 0; |
tina.legrand@webrtc.org | 554ae1a | 2011-12-16 10:09:04 +0000 | [diff] [blame] | 209 | |
| 210 | while (counter500Ms > 0) { |
| 211 | if (clock == 0 || clock >= _nextTime) { |
tina.legrand@webrtc.org | ee92b66 | 2013-08-27 07:33:51 +0000 | [diff] [blame] | 212 | EXPECT_TRUE(IncomingPacket()); |
tina.legrand@webrtc.org | 554ae1a | 2011-12-16 10:09:04 +0000 | [diff] [blame] | 213 | if (clock == 0) { |
| 214 | clock = _nextTime; |
| 215 | } |
| 216 | } |
| 217 | if ((clock % 10) == 0) { |
| 218 | if (!PlayoutData()) { |
| 219 | clock++; |
| 220 | continue; |
| 221 | } |
| 222 | } |
| 223 | if (_rtpStream->EndOfFile()) { |
| 224 | counter500Ms--; |
| 225 | } |
| 226 | clock++; |
| 227 | } |
| 228 | } |
| 229 | |
Fredrik Solenberg | 657b296 | 2018-12-05 10:30:25 +0100 | [diff] [blame] | 230 | EncodeDecodeTest::EncodeDecodeTest() = default; |
tina.legrand@webrtc.org | 554ae1a | 2011-12-16 10:09:04 +0000 | [diff] [blame] | 231 | |
| 232 | void EncodeDecodeTest::Perform() { |
Jonas Olsson | a4d8737 | 2019-07-05 19:08:33 +0200 | [diff] [blame] | 233 | const std::map<int, SdpAudioFormat> send_codecs = { |
| 234 | {103, {"ISAC", 16000, 1}}, {104, {"ISAC", 32000, 1}}, |
| 235 | {107, {"L16", 8000, 1}}, {108, {"L16", 16000, 1}}, |
| 236 | {109, {"L16", 32000, 1}}, {0, {"PCMU", 8000, 1}}, |
| 237 | {8, {"PCMA", 8000, 1}}, |
Fredrik Solenberg | 657b296 | 2018-12-05 10:30:25 +0100 | [diff] [blame] | 238 | #ifdef WEBRTC_CODEC_ILBC |
Jonas Olsson | a4d8737 | 2019-07-05 19:08:33 +0200 | [diff] [blame] | 239 | {102, {"ILBC", 8000, 1}}, |
Fredrik Solenberg | 657b296 | 2018-12-05 10:30:25 +0100 | [diff] [blame] | 240 | #endif |
Jonas Olsson | a4d8737 | 2019-07-05 19:08:33 +0200 | [diff] [blame] | 241 | {9, {"G722", 8000, 1}}}; |
Fredrik Solenberg | 657b296 | 2018-12-05 10:30:25 +0100 | [diff] [blame] | 242 | int file_num = 0; |
| 243 | for (const auto& send_codec : send_codecs) { |
| 244 | RTPFile rtpFile; |
| 245 | std::unique_ptr<AudioCodingModule> acm(AudioCodingModule::Create( |
| 246 | AudioCodingModule::Config(CreateBuiltinAudioDecoderFactory()))); |
tina.legrand@webrtc.org | 554ae1a | 2011-12-16 10:09:04 +0000 | [diff] [blame] | 247 | |
Fredrik Solenberg | 657b296 | 2018-12-05 10:30:25 +0100 | [diff] [blame] | 248 | std::string fileName = webrtc::test::TempFilename( |
| 249 | webrtc::test::OutputPath(), "encode_decode_rtp"); |
| 250 | rtpFile.Open(fileName.c_str(), "wb+"); |
| 251 | rtpFile.WriteHeader(); |
| 252 | Sender sender; |
| 253 | sender.Setup(acm.get(), &rtpFile, "audio_coding/testfile32kHz", 32000, |
| 254 | send_codec.first, send_codec.second); |
| 255 | sender.Run(); |
| 256 | sender.Teardown(); |
| 257 | rtpFile.Close(); |
tina.legrand@webrtc.org | 554ae1a | 2011-12-16 10:09:04 +0000 | [diff] [blame] | 258 | |
Fredrik Solenberg | 657b296 | 2018-12-05 10:30:25 +0100 | [diff] [blame] | 259 | rtpFile.Open(fileName.c_str(), "rb"); |
| 260 | rtpFile.ReadHeader(); |
| 261 | Receiver receiver; |
| 262 | receiver.Setup(acm.get(), &rtpFile, "encodeDecode_out", 1, file_num); |
| 263 | receiver.Run(); |
| 264 | receiver.Teardown(); |
| 265 | rtpFile.Close(); |
tina.legrand@webrtc.org | 4517585 | 2012-06-01 09:27:35 +0000 | [diff] [blame] | 266 | |
Fredrik Solenberg | 657b296 | 2018-12-05 10:30:25 +0100 | [diff] [blame] | 267 | file_num++; |
tina.legrand@webrtc.org | 554ae1a | 2011-12-16 10:09:04 +0000 | [diff] [blame] | 268 | } |
tina.legrand@webrtc.org | 554ae1a | 2011-12-16 10:09:04 +0000 | [diff] [blame] | 269 | } |
| 270 | |
tina.legrand@webrtc.org | d5726a1 | 2013-05-03 07:34:12 +0000 | [diff] [blame] | 271 | } // namespace webrtc |