| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2004 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 SetFrom(&experimental_ns, change.experimental_ns); | 159 SetFrom(&experimental_ns, change.experimental_ns); |
| 160 SetFrom(&intelligibility_enhancer, change.intelligibility_enhancer); | 160 SetFrom(&intelligibility_enhancer, change.intelligibility_enhancer); |
| 161 SetFrom(&level_control, change.level_control); | 161 SetFrom(&level_control, change.level_control); |
| 162 SetFrom(&tx_agc_target_dbov, change.tx_agc_target_dbov); | 162 SetFrom(&tx_agc_target_dbov, change.tx_agc_target_dbov); |
| 163 SetFrom(&tx_agc_digital_compression_gain, | 163 SetFrom(&tx_agc_digital_compression_gain, |
| 164 change.tx_agc_digital_compression_gain); | 164 change.tx_agc_digital_compression_gain); |
| 165 SetFrom(&tx_agc_limiter, change.tx_agc_limiter); | 165 SetFrom(&tx_agc_limiter, change.tx_agc_limiter); |
| 166 SetFrom(&recording_sample_rate, change.recording_sample_rate); | 166 SetFrom(&recording_sample_rate, change.recording_sample_rate); |
| 167 SetFrom(&playout_sample_rate, change.playout_sample_rate); | 167 SetFrom(&playout_sample_rate, change.playout_sample_rate); |
| 168 SetFrom(&combined_audio_video_bwe, change.combined_audio_video_bwe); | 168 SetFrom(&combined_audio_video_bwe, change.combined_audio_video_bwe); |
| 169 SetFrom(&audio_network_adaptor_config, change.audio_network_adaptor_config); |
| 169 } | 170 } |
| 170 | 171 |
| 171 bool operator==(const AudioOptions& o) const { | 172 bool operator==(const AudioOptions& o) const { |
| 172 return echo_cancellation == o.echo_cancellation && | 173 return echo_cancellation == o.echo_cancellation && |
| 173 auto_gain_control == o.auto_gain_control && | 174 auto_gain_control == o.auto_gain_control && |
| 174 noise_suppression == o.noise_suppression && | 175 noise_suppression == o.noise_suppression && |
| 175 highpass_filter == o.highpass_filter && | 176 highpass_filter == o.highpass_filter && |
| 176 stereo_swapping == o.stereo_swapping && | 177 stereo_swapping == o.stereo_swapping && |
| 177 audio_jitter_buffer_max_packets == | 178 audio_jitter_buffer_max_packets == |
| 178 o.audio_jitter_buffer_max_packets && | 179 o.audio_jitter_buffer_max_packets && |
| 179 audio_jitter_buffer_fast_accelerate == | 180 audio_jitter_buffer_fast_accelerate == |
| 180 o.audio_jitter_buffer_fast_accelerate && | 181 o.audio_jitter_buffer_fast_accelerate && |
| 181 typing_detection == o.typing_detection && | 182 typing_detection == o.typing_detection && |
| 182 aecm_generate_comfort_noise == o.aecm_generate_comfort_noise && | 183 aecm_generate_comfort_noise == o.aecm_generate_comfort_noise && |
| 183 experimental_agc == o.experimental_agc && | 184 experimental_agc == o.experimental_agc && |
| 184 extended_filter_aec == o.extended_filter_aec && | 185 extended_filter_aec == o.extended_filter_aec && |
| 185 delay_agnostic_aec == o.delay_agnostic_aec && | 186 delay_agnostic_aec == o.delay_agnostic_aec && |
| 186 experimental_ns == o.experimental_ns && | 187 experimental_ns == o.experimental_ns && |
| 187 intelligibility_enhancer == o.intelligibility_enhancer && | 188 intelligibility_enhancer == o.intelligibility_enhancer && |
| 188 level_control == o.level_control && | 189 level_control == o.level_control && |
| 189 adjust_agc_delta == o.adjust_agc_delta && | 190 adjust_agc_delta == o.adjust_agc_delta && |
| 190 tx_agc_target_dbov == o.tx_agc_target_dbov && | 191 tx_agc_target_dbov == o.tx_agc_target_dbov && |
| 191 tx_agc_digital_compression_gain == | 192 tx_agc_digital_compression_gain == |
| 192 o.tx_agc_digital_compression_gain && | 193 o.tx_agc_digital_compression_gain && |
| 193 tx_agc_limiter == o.tx_agc_limiter && | 194 tx_agc_limiter == o.tx_agc_limiter && |
| 194 recording_sample_rate == o.recording_sample_rate && | 195 recording_sample_rate == o.recording_sample_rate && |
| 195 playout_sample_rate == o.playout_sample_rate && | 196 playout_sample_rate == o.playout_sample_rate && |
| 196 combined_audio_video_bwe == o.combined_audio_video_bwe; | 197 combined_audio_video_bwe == o.combined_audio_video_bwe && |
| 198 audio_network_adaptor_config == o.audio_network_adaptor_config; |
| 197 } | 199 } |
| 198 bool operator!=(const AudioOptions& o) const { return !(*this == o); } | 200 bool operator!=(const AudioOptions& o) const { return !(*this == o); } |
| 199 | 201 |
| 200 std::string ToString() const { | 202 std::string ToString() const { |
| 201 std::ostringstream ost; | 203 std::ostringstream ost; |
| 202 ost << "AudioOptions {"; | 204 ost << "AudioOptions {"; |
| 203 ost << ToStringIfSet("aec", echo_cancellation); | 205 ost << ToStringIfSet("aec", echo_cancellation); |
| 204 ost << ToStringIfSet("agc", auto_gain_control); | 206 ost << ToStringIfSet("agc", auto_gain_control); |
| 205 ost << ToStringIfSet("ns", noise_suppression); | 207 ost << ToStringIfSet("ns", noise_suppression); |
| 206 ost << ToStringIfSet("hf", highpass_filter); | 208 ost << ToStringIfSet("hf", highpass_filter); |
| (...skipping 11 matching lines...) Expand all Loading... |
| 218 ost << ToStringIfSet("experimental_ns", experimental_ns); | 220 ost << ToStringIfSet("experimental_ns", experimental_ns); |
| 219 ost << ToStringIfSet("intelligibility_enhancer", intelligibility_enhancer); | 221 ost << ToStringIfSet("intelligibility_enhancer", intelligibility_enhancer); |
| 220 ost << ToStringIfSet("level_control", level_control); | 222 ost << ToStringIfSet("level_control", level_control); |
| 221 ost << ToStringIfSet("tx_agc_target_dbov", tx_agc_target_dbov); | 223 ost << ToStringIfSet("tx_agc_target_dbov", tx_agc_target_dbov); |
| 222 ost << ToStringIfSet("tx_agc_digital_compression_gain", | 224 ost << ToStringIfSet("tx_agc_digital_compression_gain", |
| 223 tx_agc_digital_compression_gain); | 225 tx_agc_digital_compression_gain); |
| 224 ost << ToStringIfSet("tx_agc_limiter", tx_agc_limiter); | 226 ost << ToStringIfSet("tx_agc_limiter", tx_agc_limiter); |
| 225 ost << ToStringIfSet("recording_sample_rate", recording_sample_rate); | 227 ost << ToStringIfSet("recording_sample_rate", recording_sample_rate); |
| 226 ost << ToStringIfSet("playout_sample_rate", playout_sample_rate); | 228 ost << ToStringIfSet("playout_sample_rate", playout_sample_rate); |
| 227 ost << ToStringIfSet("combined_audio_video_bwe", combined_audio_video_bwe); | 229 ost << ToStringIfSet("combined_audio_video_bwe", combined_audio_video_bwe); |
| 230 ost << ToStringIfSet("audio_network_adaptor_config", |
| 231 audio_network_adaptor_config); |
| 228 ost << "}"; | 232 ost << "}"; |
| 229 return ost.str(); | 233 return ost.str(); |
| 230 } | 234 } |
| 231 | 235 |
| 232 // Audio processing that attempts to filter away the output signal from | 236 // Audio processing that attempts to filter away the output signal from |
| 233 // later inbound pickup. | 237 // later inbound pickup. |
| 234 rtc::Optional<bool> echo_cancellation; | 238 rtc::Optional<bool> echo_cancellation; |
| 235 // Audio processing to adjust the sensitivity of the local mic dynamically. | 239 // Audio processing to adjust the sensitivity of the local mic dynamically. |
| 236 rtc::Optional<bool> auto_gain_control; | 240 rtc::Optional<bool> auto_gain_control; |
| 237 // Audio processing to filter out background noise. | 241 // Audio processing to filter out background noise. |
| (...skipping 20 matching lines...) Expand all Loading... |
| 258 rtc::Optional<uint16_t> tx_agc_target_dbov; | 262 rtc::Optional<uint16_t> tx_agc_target_dbov; |
| 259 rtc::Optional<uint16_t> tx_agc_digital_compression_gain; | 263 rtc::Optional<uint16_t> tx_agc_digital_compression_gain; |
| 260 rtc::Optional<bool> tx_agc_limiter; | 264 rtc::Optional<bool> tx_agc_limiter; |
| 261 rtc::Optional<uint32_t> recording_sample_rate; | 265 rtc::Optional<uint32_t> recording_sample_rate; |
| 262 rtc::Optional<uint32_t> playout_sample_rate; | 266 rtc::Optional<uint32_t> playout_sample_rate; |
| 263 // Enable combined audio+bandwidth BWE. | 267 // Enable combined audio+bandwidth BWE. |
| 264 // TODO(pthatcher): This flag is set from the | 268 // TODO(pthatcher): This flag is set from the |
| 265 // "googCombinedAudioVideoBwe", but not used anywhere. So delete it, | 269 // "googCombinedAudioVideoBwe", but not used anywhere. So delete it, |
| 266 // and check if any other AudioOptions members are unused. | 270 // and check if any other AudioOptions members are unused. |
| 267 rtc::Optional<bool> combined_audio_video_bwe; | 271 rtc::Optional<bool> combined_audio_video_bwe; |
| 272 // Enable and config string for audio network adaptor. |
| 273 rtc::Optional<std::string> audio_network_adaptor_config; |
| 268 | 274 |
| 269 private: | 275 private: |
| 270 template <typename T> | 276 template <typename T> |
| 271 static void SetFrom(rtc::Optional<T>* s, const rtc::Optional<T>& o) { | 277 static void SetFrom(rtc::Optional<T>* s, const rtc::Optional<T>& o) { |
| 272 if (o) { | 278 if (o) { |
| 273 *s = o; | 279 *s = o; |
| 274 } | 280 } |
| 275 } | 281 } |
| 276 }; | 282 }; |
| 277 | 283 |
| (...skipping 854 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1132 // Signal when the media channel is ready to send the stream. Arguments are: | 1138 // Signal when the media channel is ready to send the stream. Arguments are: |
| 1133 // writable(bool) | 1139 // writable(bool) |
| 1134 sigslot::signal1<bool> SignalReadyToSend; | 1140 sigslot::signal1<bool> SignalReadyToSend; |
| 1135 // Signal for notifying that the remote side has closed the DataChannel. | 1141 // Signal for notifying that the remote side has closed the DataChannel. |
| 1136 sigslot::signal1<uint32_t> SignalStreamClosedRemotely; | 1142 sigslot::signal1<uint32_t> SignalStreamClosedRemotely; |
| 1137 }; | 1143 }; |
| 1138 | 1144 |
| 1139 } // namespace cricket | 1145 } // namespace cricket |
| 1140 | 1146 |
| 1141 #endif // WEBRTC_MEDIA_BASE_MEDIACHANNEL_H_ | 1147 #endif // WEBRTC_MEDIA_BASE_MEDIACHANNEL_H_ |
| OLD | NEW |