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

Side by Side Diff: webrtc/modules/audio_coding/main/acm2/acm_receive_test.h

Issue 1415163002: Removing AudioCoding class, a.k.a the new ACM API (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 5 years, 2 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_coding/main/acm2/acm_receive_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 /*
2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved.
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
11 #ifndef WEBRTC_MODULES_AUDIO_CODING_MAIN_ACM2_ACM_RECEIVE_TEST_H_
12 #define WEBRTC_MODULES_AUDIO_CODING_MAIN_ACM2_ACM_RECEIVE_TEST_H_
13
14 #include "webrtc/base/constructormagic.h"
15 #include "webrtc/base/scoped_ptr.h"
16 #include "webrtc/system_wrappers/interface/clock.h"
17
18 namespace webrtc {
19 class AudioCoding;
20 struct CodecInst;
21
22 namespace test {
23 class AudioSink;
24 class PacketSource;
25
26 class AcmReceiveTest {
27 public:
28 enum NumOutputChannels {
29 kArbitraryChannels = 0,
30 kMonoOutput = 1,
31 kStereoOutput = 2
32 };
33
34 AcmReceiveTest(
35 PacketSource* packet_source,
36 AudioSink* audio_sink,
37 int output_freq_hz,
38 NumOutputChannels expected_output_channels);
39 virtual ~AcmReceiveTest() {}
40
41 // Registers the codecs with default parameters from ACM.
42 void RegisterDefaultCodecs();
43
44 // Registers codecs with payload types matching the pre-encoded NetEq test
45 // files.
46 void RegisterNetEqTestCodecs();
47
48 // Runs the test and returns true if successful.
49 void Run();
50
51 private:
52 SimulatedClock clock_;
53 rtc::scoped_ptr<AudioCoding> acm_;
54 PacketSource* packet_source_;
55 AudioSink* audio_sink_;
56 const int output_freq_hz_;
57 NumOutputChannels expected_output_channels_;
58
59 RTC_DISALLOW_COPY_AND_ASSIGN(AcmReceiveTest);
60 };
61
62 } // namespace test
63 } // namespace webrtc
64 #endif // WEBRTC_MODULES_AUDIO_CODING_MAIN_ACM2_ACM_RECEIVE_TEST_H_
OLDNEW
« no previous file with comments | « no previous file | webrtc/modules/audio_coding/main/acm2/acm_receive_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698