Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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 // Decoders for every payload that we can receive. |
|
the sun
2016/12/08 10:53:52
nit: "Decoders" is not strictly true ... "Formats"
kwiberg-webrtc
2016/12/09 02:39:01
I picked "decoder specifications".
| |
| 106 // AudioDecoder instances once the Config is submitted to | 106 std::map<int, SdpAudioFormat> decoder_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 Loading... | |
| 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_ |
| OLD | NEW |