OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef REMOTING_PROTOCOL_audio_stream_H_ | 5 #ifndef REMOTING_PROTOCOL_AUDIO_STREAM_H_ |
6 #define REMOTING_PROTOCOL_audio_stream_H_ | 6 #define REMOTING_PROTOCOL_AUDIO_STREAM_H_ |
7 | 7 |
8 namespace remoting { | 8 namespace remoting { |
9 namespace protocol { | 9 namespace protocol { |
10 | 10 |
11 // AudioStream is responsible for fetching audio data from an AudioSource, | 11 // AudioStream is responsible for fetching audio data from an AudioSource, |
12 // and sending it to the client. | 12 // and sending it to the client. |
13 class AudioStream { | 13 class AudioStream { |
14 public: | 14 public: |
15 AudioStream() {} | 15 AudioStream() {} |
16 virtual ~AudioStream() {} | 16 virtual ~AudioStream() {} |
17 | 17 |
18 // Pauses or resumes audio on a running session. This leaves the audio | 18 // Pauses or resumes audio on a running session. This leaves the audio |
19 // capturer running, and only affects whether or not the captured audio is | 19 // capturer running, and only affects whether or not the captured audio is |
20 // encoded and sent on the wire. | 20 // encoded and sent on the wire. |
21 virtual void Pause(bool pause) = 0; | 21 virtual void Pause(bool pause) = 0; |
22 }; | 22 }; |
23 | 23 |
24 } // namespace protocol | 24 } // namespace protocol |
25 } // namespace remoting | 25 } // namespace remoting |
26 | 26 |
27 #endif // REMOTING_PROTOCOL_audio_stream_H_ | 27 #endif // REMOTING_PROTOCOL_AUDIO_STREAM_H_ |
OLD | NEW |