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

Side by Side Diff: webrtc/voice_engine/channel_proxy.h

Issue 2378143004: Made AudioReceiveStream a mixer participant. (Closed)
Patch Set: Rebase after mixer interface changes. Created 4 years, 2 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
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_VOICE_ENGINE_CHANNEL_PROXY_H_ 11 #ifndef WEBRTC_VOICE_ENGINE_CHANNEL_PROXY_H_
12 #define WEBRTC_VOICE_ENGINE_CHANNEL_PROXY_H_ 12 #define WEBRTC_VOICE_ENGINE_CHANNEL_PROXY_H_
13 13
14 #include "webrtc/api/audio/audio_mixer.h"
14 #include "webrtc/base/constructormagic.h" 15 #include "webrtc/base/constructormagic.h"
15 #include "webrtc/base/thread_checker.h" 16 #include "webrtc/base/thread_checker.h"
16 #include "webrtc/voice_engine/channel_manager.h" 17 #include "webrtc/voice_engine/channel_manager.h"
17 #include "webrtc/voice_engine/include/voe_rtp_rtcp.h" 18 #include "webrtc/voice_engine/include/voe_rtp_rtcp.h"
18 19
19 #include <memory> 20 #include <memory>
20 #include <string> 21 #include <string>
21 #include <vector> 22 #include <vector>
22 23
23 namespace webrtc { 24 namespace webrtc {
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 88
88 virtual const rtc::scoped_refptr<AudioDecoderFactory>& 89 virtual const rtc::scoped_refptr<AudioDecoderFactory>&
89 GetAudioDecoderFactory() const; 90 GetAudioDecoderFactory() const;
90 91
91 virtual void SetChannelOutputVolumeScaling(float scaling); 92 virtual void SetChannelOutputVolumeScaling(float scaling);
92 93
93 virtual void SetRtcEventLog(RtcEventLog* event_log); 94 virtual void SetRtcEventLog(RtcEventLog* event_log);
94 95
95 virtual void SetRtcpRttStats(RtcpRttStats* rtcp_rtt_stats); 96 virtual void SetRtcpRttStats(RtcpRttStats* rtcp_rtt_stats);
96 97
98 virtual AudioMixer::Source::AudioFrameWithInfo GetAudioFrameWithInfo(
99 int sample_rate_hz);
100
97 private: 101 private:
98 Channel* channel() const; 102 Channel* channel() const;
99 103
100 rtc::ThreadChecker thread_checker_; 104 rtc::ThreadChecker thread_checker_;
105 rtc::ThreadChecker mixer_callback_thread_checker_;
the sun 2016/10/13 12:16:56 Use an rtc::RaceChecker here instead, and use i.e.
aleloi 2016/10/13 13:34:56 Then I had an incorrect understanding of the threa
the sun 2016/10/13 13:51:33 Acknowledged.
101 ChannelOwner channel_owner_; 106 ChannelOwner channel_owner_;
102 107
103 RTC_DISALLOW_COPY_AND_ASSIGN(ChannelProxy); 108 RTC_DISALLOW_COPY_AND_ASSIGN(ChannelProxy);
104 }; 109 };
105 } // namespace voe 110 } // namespace voe
106 } // namespace webrtc 111 } // namespace webrtc
107 112
108 #endif // WEBRTC_VOICE_ENGINE_CHANNEL_PROXY_H_ 113 #endif // WEBRTC_VOICE_ENGINE_CHANNEL_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698