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

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

Issue 2516993002: Pass SdpAudioFormat through Channel, without converting to CodecInst (Closed)
Patch Set: Fix SetRecvCodecsAfterAddingStreams Created 4 years 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
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 // level components. 95 // level components.
96 // TODO(solenberg): Remove when VoiceEngine channels are created outside 96 // TODO(solenberg): Remove when VoiceEngine channels are created outside
97 // of Call. 97 // of Call.
98 int voe_channel_id = -1; 98 int voe_channel_id = -1;
99 99
100 // Identifier for an A/V synchronization group. Empty string to disable. 100 // Identifier for an A/V synchronization group. Empty string to disable.
101 // TODO(pbos): Synchronize streams in a sync group, not just one video 101 // TODO(pbos): Synchronize streams in a sync group, not just one video
102 // stream to one audio stream. Tracked by issue webrtc:4762. 102 // stream to one audio stream. Tracked by issue webrtc:4762.
103 std::string sync_group; 103 std::string sync_group;
104 104
105 // Decoders for every payload that we can receive. Call owns the 105 // Decoder specifications for every payload type that we can receive.
106 // AudioDecoder instances once the Config is submitted to 106 std::map<int, SdpAudioFormat> decoder_map;
the sun 2016/12/14 08:58:21 nit: is decoder_map really the right name nowadays
kwiberg-webrtc 2016/12/14 13:09:36 It's a payload type -> decoder specification map,
107 // Call::CreateReceiveStream().
108 // TODO(solenberg): Use unique_ptr<> once our std lib fully supports C++11.
109 std::map<uint8_t, AudioDecoder*> decoder_map;
110 107
111 rtc::scoped_refptr<AudioDecoderFactory> decoder_factory; 108 rtc::scoped_refptr<AudioDecoderFactory> decoder_factory;
112 }; 109 };
113 110
114 // Starts stream activity. 111 // Starts stream activity.
115 // When a stream is active, it can receive, process and deliver packets. 112 // When a stream is active, it can receive, process and deliver packets.
116 virtual void Start() = 0; 113 virtual void Start() = 0;
117 // Stops stream activity. 114 // Stops stream activity.
118 // When a stream is stopped, it can't receive, process or deliver packets. 115 // When a stream is stopped, it can't receive, process or deliver packets.
119 virtual void Stop() = 0; 116 virtual void Stop() = 0;
(...skipping 13 matching lines...) Expand all
133 // Sets playback gain of the stream, applied when mixing, and thus after it 130 // Sets playback gain of the stream, applied when mixing, and thus after it
134 // is potentially forwarded to any attached AudioSinkInterface implementation. 131 // is potentially forwarded to any attached AudioSinkInterface implementation.
135 virtual void SetGain(float gain) = 0; 132 virtual void SetGain(float gain) = 0;
136 133
137 protected: 134 protected:
138 virtual ~AudioReceiveStream() {} 135 virtual ~AudioReceiveStream() {}
139 }; 136 };
140 } // namespace webrtc 137 } // namespace webrtc
141 138
142 #endif // WEBRTC_CALL_AUDIO_RECEIVE_STREAM_H_ 139 #endif // WEBRTC_CALL_AUDIO_RECEIVE_STREAM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698