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

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

Issue 2221193004: Migrated GN target :neteq_ilbc_quality_test (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebase on top of master. Created 4 years, 4 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) 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 29 matching lines...) Expand all
40 private: 40 private:
41 RTC_DISALLOW_COPY_AND_ASSIGN(AudioSink); 41 RTC_DISALLOW_COPY_AND_ASSIGN(AudioSink);
42 }; 42 };
43 43
44 // Forks the output audio to two AudioSink objects. 44 // Forks the output audio to two AudioSink objects.
45 class AudioSinkFork : public AudioSink { 45 class AudioSinkFork : public AudioSink {
46 public: 46 public:
47 AudioSinkFork(AudioSink* left, AudioSink* right) 47 AudioSinkFork(AudioSink* left, AudioSink* right)
48 : left_sink_(left), right_sink_(right) {} 48 : left_sink_(left), right_sink_(right) {}
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 return left_sink_->WriteArray(audio, num_samples) &&
52 right_sink_->WriteArray(audio, num_samples);
53 }
54 51
55 private: 52 private:
56 AudioSink* left_sink_; 53 AudioSink* left_sink_;
57 AudioSink* right_sink_; 54 AudioSink* right_sink_;
58 55
59 RTC_DISALLOW_COPY_AND_ASSIGN(AudioSinkFork); 56 RTC_DISALLOW_COPY_AND_ASSIGN(AudioSinkFork);
60 }; 57 };
58
61 } // namespace test 59 } // namespace test
62 } // namespace webrtc 60 } // namespace webrtc
63 #endif // WEBRTC_MODULES_AUDIO_CODING_NETEQ_TOOLS_AUDIO_SINK_H_ 61 #endif // WEBRTC_MODULES_AUDIO_CODING_NETEQ_TOOLS_AUDIO_SINK_H_
OLDNEW
« no previous file with comments | « webrtc/modules/audio_coding/neteq/neteq_tests.gypi ('k') | webrtc/modules/audio_coding/neteq/tools/audio_sink.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698