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

Side by Side Diff: webrtc/modules/audio_coding/neteq/tools/audio_sink.h

Issue 2842033003: NetEq: Add a VoidAudioSink tool (Closed)
Patch Set: Created 3 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
« no previous file with comments | « no previous file | webrtc/modules/audio_coding/neteq/tools/audio_sink.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2014 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 49
50 bool WriteArray(const int16_t* audio, size_t num_samples) override; 50 bool WriteArray(const int16_t* audio, size_t num_samples) override;
51 51
52 private: 52 private:
53 AudioSink* left_sink_; 53 AudioSink* left_sink_;
54 AudioSink* right_sink_; 54 AudioSink* right_sink_;
55 55
56 RTC_DISALLOW_COPY_AND_ASSIGN(AudioSinkFork); 56 RTC_DISALLOW_COPY_AND_ASSIGN(AudioSinkFork);
57 }; 57 };
58 58
59 // An AudioSink implementation that does nothing.
60 class VoidAudioSink : public AudioSink {
61 public:
62 VoidAudioSink() = default;
63 bool WriteArray(const int16_t* audio, size_t num_samples) override;
64
65 private:
66 RTC_DISALLOW_COPY_AND_ASSIGN(VoidAudioSink);
67 };
68
59 } // namespace test 69 } // namespace test
60 } // namespace webrtc 70 } // namespace webrtc
61 #endif // WEBRTC_MODULES_AUDIO_CODING_NETEQ_TOOLS_AUDIO_SINK_H_ 71 #endif // WEBRTC_MODULES_AUDIO_CODING_NETEQ_TOOLS_AUDIO_SINK_H_
OLDNEW
« no previous file with comments | « no previous file | webrtc/modules/audio_coding/neteq/tools/audio_sink.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698