Fredrik Solenberg | 04f4931 | 2015-06-08 11:04:56 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. |
| 3 | * |
| 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 |
| 6 | * tree. An additional intellectual property rights grant can be found |
| 7 | * in the file PATENTS. All contributing project authors may |
| 8 | * be found in the AUTHORS file in the root of the source tree. |
| 9 | */ |
| 10 | |
| 11 | #ifndef WEBRTC_AUDIO_SEND_STREAM_H_ |
| 12 | #define WEBRTC_AUDIO_SEND_STREAM_H_ |
| 13 | |
| 14 | #include <string> |
| 15 | #include <vector> |
| 16 | |
| 17 | #include "webrtc/base/scoped_ptr.h" |
| 18 | #include "webrtc/config.h" |
| 19 | #include "webrtc/modules/audio_coding/codecs/audio_encoder.h" |
Jelena Marusic | cd67022 | 2015-07-16 07:30:09 | [diff] [blame] | 20 | #include "webrtc/stream.h" |
Fredrik Solenberg | 04f4931 | 2015-06-08 11:04:56 | [diff] [blame] | 21 | #include "webrtc/typedefs.h" |
| 22 | |
| 23 | namespace webrtc { |
| 24 | |
Jelena Marusic | cd67022 | 2015-07-16 07:30:09 | [diff] [blame] | 25 | class AudioSendStream : public SendStream { |
Fredrik Solenberg | 04f4931 | 2015-06-08 11:04:56 | [diff] [blame] | 26 | public: |
| 27 | struct Stats {}; |
| 28 | |
| 29 | struct Config { |
| 30 | std::string ToString() const; |
| 31 | |
| 32 | // Receive-stream specific RTP settings. |
| 33 | struct Rtp { |
| 34 | std::string ToString() const; |
| 35 | |
| 36 | // Sender SSRC. |
| 37 | uint32_t ssrc = 0; |
| 38 | |
| 39 | // RTP header extensions used for the received stream. |
| 40 | std::vector<RtpExtension> extensions; |
| 41 | } rtp; |
| 42 | |
| 43 | rtc::scoped_ptr<AudioEncoder> encoder; |
| 44 | int cng_payload_type = -1; // pt, or -1 to disable Comfort Noise Generator. |
| 45 | int red_payload_type = -1; // pt, or -1 to disable REDundant coding. |
| 46 | }; |
| 47 | |
| 48 | virtual Stats GetStats() const = 0; |
Fredrik Solenberg | 04f4931 | 2015-06-08 11:04:56 | [diff] [blame] | 49 | }; |
| 50 | } // namespace webrtc |
| 51 | |
| 52 | #endif // WEBRTC_AUDIO_SEND_STREAM_H_ |