OLD | NEW |
---|---|
(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_ | |
OLD | NEW |