OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 }; | 140 }; |
141 | 141 |
142 // Starts stream activity. | 142 // Starts stream activity. |
143 // When a stream is active, it can receive, process and deliver packets. | 143 // When a stream is active, it can receive, process and deliver packets. |
144 virtual void Start() = 0; | 144 virtual void Start() = 0; |
145 // Stops stream activity. | 145 // Stops stream activity. |
146 // When a stream is stopped, it can't receive, process or deliver packets. | 146 // When a stream is stopped, it can't receive, process or deliver packets. |
147 virtual void Stop() = 0; | 147 virtual void Stop() = 0; |
148 | 148 |
149 // TODO(solenberg): Make payload_type a config property instead. | 149 // TODO(solenberg): Make payload_type a config property instead. |
150 virtual bool SendTelephoneEvent(int payload_type, int event, | 150 virtual bool SendTelephoneEvent(int payload_type, int payload_frequency, |
151 int duration_ms) = 0; | 151 int event, int duration_ms) = 0; |
152 | 152 |
153 virtual void SetMuted(bool muted) = 0; | 153 virtual void SetMuted(bool muted) = 0; |
154 | 154 |
155 virtual Stats GetStats() const = 0; | 155 virtual Stats GetStats() const = 0; |
156 | 156 |
157 protected: | 157 protected: |
158 virtual ~AudioSendStream() {} | 158 virtual ~AudioSendStream() {} |
159 }; | 159 }; |
160 } // namespace webrtc | 160 } // namespace webrtc |
161 | 161 |
162 #endif // WEBRTC_API_CALL_AUDIO_SEND_STREAM_H_ | 162 #endif // WEBRTC_API_CALL_AUDIO_SEND_STREAM_H_ |
OLD | NEW |