blob: 6f431a88a79ab9a4d5096764bb4ee9e0fcd6046b [file] [log] [blame]
Fredrik Solenberg23fba1f2015-04-29 15:24:01 +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_RECEIVE_STREAM_H_
12#define WEBRTC_AUDIO_RECEIVE_STREAM_H_
13
14#include <string>
15#include <vector>
16
17#include "webrtc/common_types.h"
18#include "webrtc/config.h"
19
20namespace webrtc {
21
22class AudioReceiveStream {
23 public:
24 struct Config {
25 Config() {}
26 std::string ToString() const;
27
28 // Receive-stream specific RTP settings.
29 struct Rtp {
30 Rtp() : remote_ssrc(0) {}
31 std::string ToString() const;
32
33 // Synchronization source (stream identifier) to be received.
34 uint32_t remote_ssrc;
35
36 // RTP header extensions used for the received stream.
37 std::vector<RtpExtension> extensions;
38 } rtp;
39 };
40
41 protected:
42 virtual ~AudioReceiveStream() {}
43};
44
45} // namespace webrtc
46
47#endif // WEBRTC_AUDIO_RECEIVE_STREAM_H_