| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2004 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2004 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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 bool rtcp, | 113 bool rtcp, |
| 114 DataChannelType data_channel_type); | 114 DataChannelType data_channel_type); |
| 115 // Destroys a data channel created with the Create API. | 115 // Destroys a data channel created with the Create API. |
| 116 void DestroyDataChannel(DataChannel* data_channel); | 116 void DestroyDataChannel(DataChannel* data_channel); |
| 117 | 117 |
| 118 // Indicates whether any channels exist. | 118 // Indicates whether any channels exist. |
| 119 bool has_channels() const { | 119 bool has_channels() const { |
| 120 return (!voice_channels_.empty() || !video_channels_.empty()); | 120 return (!voice_channels_.empty() || !video_channels_.empty()); |
| 121 } | 121 } |
| 122 | 122 |
| 123 bool GetOutputVolume(int* level); | |
| 124 bool SetOutputVolume(int level); | |
| 125 // RTX will be enabled/disabled in engines that support it. The supporting | 123 // RTX will be enabled/disabled in engines that support it. The supporting |
| 126 // engines will start offering an RTX codec. Must be called before Init(). | 124 // engines will start offering an RTX codec. Must be called before Init(). |
| 127 bool SetVideoRtxEnabled(bool enable); | 125 bool SetVideoRtxEnabled(bool enable); |
| 128 | 126 |
| 129 // Starts/stops the local microphone and enables polling of the input level. | 127 // Starts/stops the local microphone and enables polling of the input level. |
| 130 bool capturing() const { return capturing_; } | 128 bool capturing() const { return capturing_; } |
| 131 | 129 |
| 132 // The operations below occur on the main thread. | 130 // The operations below occur on the main thread. |
| 133 | 131 |
| 134 // Starts AEC dump using existing file, with a specified maximum file size in | 132 // Starts AEC dump using existing file, with a specified maximum file size in |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 std::unique_ptr<DataEngineInterface> data_media_engine_; | 182 std::unique_ptr<DataEngineInterface> data_media_engine_; |
| 185 bool initialized_; | 183 bool initialized_; |
| 186 rtc::Thread* main_thread_; | 184 rtc::Thread* main_thread_; |
| 187 rtc::Thread* worker_thread_; | 185 rtc::Thread* worker_thread_; |
| 188 rtc::Thread* network_thread_; | 186 rtc::Thread* network_thread_; |
| 189 | 187 |
| 190 VoiceChannels voice_channels_; | 188 VoiceChannels voice_channels_; |
| 191 VideoChannels video_channels_; | 189 VideoChannels video_channels_; |
| 192 DataChannels data_channels_; | 190 DataChannels data_channels_; |
| 193 | 191 |
| 194 int audio_output_volume_; | |
| 195 bool enable_rtx_; | 192 bool enable_rtx_; |
| 196 | 193 |
| 197 bool capturing_; | 194 bool capturing_; |
| 198 }; | 195 }; |
| 199 | 196 |
| 200 } // namespace cricket | 197 } // namespace cricket |
| 201 | 198 |
| 202 #endif // WEBRTC_PC_CHANNELMANAGER_H_ | 199 #endif // WEBRTC_PC_CHANNELMANAGER_H_ |
| OLD | NEW |