OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef REMOTING_PROTOCOL_audio_stream_H_ |
| 6 #define REMOTING_PROTOCOL_audio_stream_H_ |
| 7 |
| 8 namespace remoting { |
| 9 namespace protocol { |
| 10 |
| 11 // AudioStream is responsible for fetching audio data from an AudioSource, |
| 12 // and sending it to the client. |
| 13 class AudioStream { |
| 14 public: |
| 15 AudioStream() {} |
| 16 virtual ~AudioStream() {} |
| 17 |
| 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 |
| 20 // encoded and sent on the wire. |
| 21 virtual void Pause(bool pause) = 0; |
| 22 }; |
| 23 |
| 24 } // namespace protocol |
| 25 } // namespace remoting |
| 26 |
| 27 #endif // REMOTING_PROTOCOL_audio_stream_H_ |
OLD | NEW |