| 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 // components. | 78 // components. |
| 79 // TODO(solenberg): Remove when VoiceEngine channels are created outside | 79 // TODO(solenberg): Remove when VoiceEngine channels are created outside |
| 80 // of Call. | 80 // of Call. |
| 81 int voe_channel_id = -1; | 81 int voe_channel_id = -1; |
| 82 | 82 |
| 83 // Ownership of the encoder object is transferred to Call when the config is | 83 // Ownership of the encoder object is transferred to Call when the config is |
| 84 // passed to Call::CreateAudioSendStream(). | 84 // passed to Call::CreateAudioSendStream(). |
| 85 // TODO(solenberg): Implement, once we configure codecs through the new API. | 85 // TODO(solenberg): Implement, once we configure codecs through the new API. |
| 86 // std::unique_ptr<AudioEncoder> encoder; | 86 // std::unique_ptr<AudioEncoder> encoder; |
| 87 int cng_payload_type = -1; // pt, or -1 to disable Comfort Noise Generator. | 87 int cng_payload_type = -1; // pt, or -1 to disable Comfort Noise Generator. |
| 88 int red_payload_type = -1; // pt, or -1 to disable REDundant coding. | |
| 89 }; | 88 }; |
| 90 | 89 |
| 91 // Starts stream activity. | 90 // Starts stream activity. |
| 92 // When a stream is active, it can receive, process and deliver packets. | 91 // When a stream is active, it can receive, process and deliver packets. |
| 93 virtual void Start() = 0; | 92 virtual void Start() = 0; |
| 94 // Stops stream activity. | 93 // Stops stream activity. |
| 95 // When a stream is stopped, it can't receive, process or deliver packets. | 94 // When a stream is stopped, it can't receive, process or deliver packets. |
| 96 virtual void Stop() = 0; | 95 virtual void Stop() = 0; |
| 97 | 96 |
| 98 // TODO(solenberg): Make payload_type a config property instead. | 97 // TODO(solenberg): Make payload_type a config property instead. |
| 99 virtual bool SendTelephoneEvent(int payload_type, int event, | 98 virtual bool SendTelephoneEvent(int payload_type, int event, |
| 100 int duration_ms) = 0; | 99 int duration_ms) = 0; |
| 101 virtual Stats GetStats() const = 0; | 100 virtual Stats GetStats() const = 0; |
| 102 | 101 |
| 103 protected: | 102 protected: |
| 104 virtual ~AudioSendStream() {} | 103 virtual ~AudioSendStream() {} |
| 105 }; | 104 }; |
| 106 } // namespace webrtc | 105 } // namespace webrtc |
| 107 | 106 |
| 108 #endif // WEBRTC_AUDIO_SEND_STREAM_H_ | 107 #endif // WEBRTC_AUDIO_SEND_STREAM_H_ |
| OLD | NEW |