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

Unified Diff: remoting/base/audio_capture_data.h

Issue 10836017: Piping for audio encoding. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed some style issues Created 8 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | remoting/base/audio_capture_data.cc » ('j') | remoting/base/audio_encoder.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/base/audio_capture_data.h
diff --git a/remoting/base/audio_capture_data.h b/remoting/base/audio_capture_data.h
new file mode 100644
index 0000000000000000000000000000000000000000..7eba51269b50d15a74e4cfa1c919c8cde041495c
--- /dev/null
+++ b/remoting/base/audio_capture_data.h
@@ -0,0 +1,37 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef REMOTING_BASE_AUDIO_CAPTURE_DATA_H_
+#define REMOTING_BASE_AUDIO_CAPTURE_DATA_H_
+
+#include <string>
+
+#include "base/basictypes.h"
+#include "remoting/proto/audio.pb.h"
+
+namespace remoting {
+
+class AudioCaptureData {
Sergey Ulanov 2012/07/31 20:00:18 add comments to explain what this is for.
Sergey Ulanov 2012/07/31 20:00:18 Do we really need this class at all? Can we just u
kxing 2012/07/31 22:11:44 Done.
kxing 2012/07/31 22:11:44 Done.
+ public:
+ AudioCaptureData();
+ ~AudioCaptureData();
+
+ const std::string& data() const { return data_; }
+ void set_data(std::string data) { data_.assign(data); }
Sergey Ulanov 2012/07/31 20:00:18 use const reference for the argument. Might be bet
kxing 2012/07/31 22:11:44 Done.
+
+ AudioPacket::SamplingRate sampling_rate() const { return sampling_rate_; }
+ void set_sampling_rate(AudioPacket::SamplingRate sampling_rate) {
+ sampling_rate_ = sampling_rate;
+ }
+
+ private:
+ std::string data_;
+ AudioPacket::SamplingRate sampling_rate_;
+
+ DISALLOW_COPY_AND_ASSIGN(AudioCaptureData);
+};
+
+} // namespace remoting
+
+#endif // REMOTING_BASE_AUDIO_CAPTURE_DATA_H_
« no previous file with comments | « no previous file | remoting/base/audio_capture_data.cc » ('j') | remoting/base/audio_encoder.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698