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

Side by Side Diff: webrtc/voice_engine/include/voe_base.h

Issue 2453243003: Remove voe::Channel::StopReceive() and associated logic. (Closed)
Patch Set: Created 4 years, 1 month 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) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2012 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
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 // Returns channel ID or -1 in case of an error. 155 // Returns channel ID or -1 in case of an error.
156 virtual int CreateChannel() = 0; 156 virtual int CreateChannel() = 0;
157 virtual int CreateChannel(const ChannelConfig& config) = 0; 157 virtual int CreateChannel(const ChannelConfig& config) = 0;
158 158
159 // Deletes an existing channel and releases the utilized resources. 159 // Deletes an existing channel and releases the utilized resources.
160 // Returns -1 in case of an error, 0 otherwise. 160 // Returns -1 in case of an error, 0 otherwise.
161 virtual int DeleteChannel(int channel) = 0; 161 virtual int DeleteChannel(int channel) = 0;
162 162
163 // Prepares and initiates the VoiceEngine for reception of 163 // Prepares and initiates the VoiceEngine for reception of
164 // incoming RTP/RTCP packets on the specified |channel|. 164 // incoming RTP/RTCP packets on the specified |channel|.
165 virtual int StartReceive(int channel) = 0; 165 virtual int StartReceive(int channel) = 0;
ossu 2016/10/27 09:40:56 If you're removing StopReceive, shouldn't StartRec
the sun 2016/10/27 10:44:02 The reason I decided to keep it is that StartRecei
ossu 2016/10/27 12:58:37 Then I think you should rename it to something lik
166 166
167 // Stops receiving incoming RTP/RTCP packets on the specified |channel|. 167 // Stops receiving incoming RTP/RTCP packets on the specified |channel|.
168 virtual int StopReceive(int channel) = 0; 168 virtual int StopReceive(int channel) { return 0; }
169 169
170 // Starts forwarding the packets to the mixer/soundcard for a 170 // Starts forwarding the packets to the mixer/soundcard for a
171 // specified |channel|. 171 // specified |channel|.
172 virtual int StartPlayout(int channel) = 0; 172 virtual int StartPlayout(int channel) = 0;
173 173
174 // Stops forwarding the packets to the mixer/soundcard for a 174 // Stops forwarding the packets to the mixer/soundcard for a
175 // specified |channel|. 175 // specified |channel|.
176 virtual int StopPlayout(int channel) = 0; 176 virtual int StopPlayout(int channel) = 0;
177 177
178 // Starts sending packets to an already specified IP address and 178 // Starts sending packets to an already specified IP address and
(...skipping 20 matching lines...) Expand all
199 virtual int AssociateSendChannel(int channel, int accociate_send_channel) = 0; 199 virtual int AssociateSendChannel(int channel, int accociate_send_channel) = 0;
200 200
201 protected: 201 protected:
202 VoEBase() {} 202 VoEBase() {}
203 virtual ~VoEBase() {} 203 virtual ~VoEBase() {}
204 }; 204 };
205 205
206 } // namespace webrtc 206 } // namespace webrtc
207 207
208 #endif // WEBRTC_VOICE_ENGINE_VOE_BASE_H 208 #endif // WEBRTC_VOICE_ENGINE_VOE_BASE_H
OLDNEW
« no previous file with comments | « webrtc/voice_engine/channel.cc ('k') | webrtc/voice_engine/test/auto_test/fixtures/before_streaming_fixture.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698