blob: 4ad15d6836592b898eb271698c62b9bdf6fcc1e2 [file] [log] [blame]
Fredrik Solenberg04f49312015-06-08 13:04:56 +02001/*
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"
20#include "webrtc/typedefs.h"
21
22namespace webrtc {
23
24class AudioSendStream {
25 public:
26 struct Stats {};
27
28 struct Config {
29 std::string ToString() const;
30
31 // Receive-stream specific RTP settings.
32 struct Rtp {
33 std::string ToString() const;
34
35 // Sender SSRC.
36 uint32_t ssrc = 0;
37
38 // RTP header extensions used for the received stream.
39 std::vector<RtpExtension> extensions;
40 } rtp;
41
42 rtc::scoped_ptr<AudioEncoder> encoder;
43 int cng_payload_type = -1; // pt, or -1 to disable Comfort Noise Generator.
44 int red_payload_type = -1; // pt, or -1 to disable REDundant coding.
45 };
46
47 virtual Stats GetStats() const = 0;
48
49 protected:
50 virtual ~AudioSendStream() {}
51};
52} // namespace webrtc
53
54#endif // WEBRTC_AUDIO_SEND_STREAM_H_