Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(582)

Side by Side Diff: webrtc/call/audio_receive_stream.h

Issue 2809613002: Revert of Implemented the GetSources() in native code. (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « webrtc/call/BUILD.gn ('k') | webrtc/media/engine/fakewebrtccall.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
11 #ifndef WEBRTC_CALL_AUDIO_RECEIVE_STREAM_H_ 11 #ifndef WEBRTC_CALL_AUDIO_RECEIVE_STREAM_H_
12 #define WEBRTC_CALL_AUDIO_RECEIVE_STREAM_H_ 12 #define WEBRTC_CALL_AUDIO_RECEIVE_STREAM_H_
13 13
14 #include <map> 14 #include <map>
15 #include <memory> 15 #include <memory>
16 #include <string> 16 #include <string>
17 #include <vector> 17 #include <vector>
18 18
19 #include "webrtc/api/audio_codecs/audio_decoder_factory.h" 19 #include "webrtc/api/audio_codecs/audio_decoder_factory.h"
20 #include "webrtc/api/call/transport.h" 20 #include "webrtc/api/call/transport.h"
21 #include "webrtc/api/rtpreceiverinterface.h"
22 #include "webrtc/base/optional.h" 21 #include "webrtc/base/optional.h"
23 #include "webrtc/base/scoped_ref_ptr.h" 22 #include "webrtc/base/scoped_ref_ptr.h"
24 #include "webrtc/common_types.h" 23 #include "webrtc/common_types.h"
25 #include "webrtc/config.h" 24 #include "webrtc/config.h"
26 #include "webrtc/typedefs.h" 25 #include "webrtc/typedefs.h"
27 26
28 namespace webrtc { 27 namespace webrtc {
29 class AudioSinkInterface; 28 class AudioSinkInterface;
30 29
31 // WORK IN PROGRESS 30 // WORK IN PROGRESS
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 // NOTE: Audio must still somehow be pulled through AudioTransport for audio 126 // NOTE: Audio must still somehow be pulled through AudioTransport for audio
128 // to stream through this sink. In practice, this happens if mixed audio 127 // to stream through this sink. In practice, this happens if mixed audio
129 // is being pulled+rendered and/or if audio is being pulled for the purposes 128 // is being pulled+rendered and/or if audio is being pulled for the purposes
130 // of feeding to the AEC. 129 // of feeding to the AEC.
131 virtual void SetSink(std::unique_ptr<AudioSinkInterface> sink) = 0; 130 virtual void SetSink(std::unique_ptr<AudioSinkInterface> sink) = 0;
132 131
133 // Sets playback gain of the stream, applied when mixing, and thus after it 132 // Sets playback gain of the stream, applied when mixing, and thus after it
134 // is potentially forwarded to any attached AudioSinkInterface implementation. 133 // is potentially forwarded to any attached AudioSinkInterface implementation.
135 virtual void SetGain(float gain) = 0; 134 virtual void SetGain(float gain) = 0;
136 135
137 virtual std::vector<RtpSource> GetSources() const = 0;
138
139 protected: 136 protected:
140 virtual ~AudioReceiveStream() {} 137 virtual ~AudioReceiveStream() {}
141 }; 138 };
142 } // namespace webrtc 139 } // namespace webrtc
143 140
144 #endif // WEBRTC_CALL_AUDIO_RECEIVE_STREAM_H_ 141 #endif // WEBRTC_CALL_AUDIO_RECEIVE_STREAM_H_
OLDNEW
« no previous file with comments | « webrtc/call/BUILD.gn ('k') | webrtc/media/engine/fakewebrtccall.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698