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

Side by Side 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, 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | remoting/base/audio_capture_data.cc » ('j') | remoting/base/audio_encoder.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef REMOTING_BASE_AUDIO_CAPTURE_DATA_H_
6 #define REMOTING_BASE_AUDIO_CAPTURE_DATA_H_
7
8 #include <string>
9
10 #include "base/basictypes.h"
11 #include "remoting/proto/audio.pb.h"
12
13 namespace remoting {
14
15 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.
16 public:
17 AudioCaptureData();
18 ~AudioCaptureData();
19
20 const std::string& data() const { return data_; }
21 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.
22
23 AudioPacket::SamplingRate sampling_rate() const { return sampling_rate_; }
24 void set_sampling_rate(AudioPacket::SamplingRate sampling_rate) {
25 sampling_rate_ = sampling_rate;
26 }
27
28 private:
29 std::string data_;
30 AudioPacket::SamplingRate sampling_rate_;
31
32 DISALLOW_COPY_AND_ASSIGN(AudioCaptureData);
33 };
34
35 } // namespace remoting
36
37 #endif // REMOTING_BASE_AUDIO_CAPTURE_DATA_H_
OLDNEW
« 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