OLD | NEW |
1 /* | 1 /* |
2 * libjingle | 2 * libjingle |
3 * Copyright 2010 Google Inc. | 3 * Copyright 2010 Google Inc. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are met: | 6 * modification, are permitted provided that the following conditions are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright notice, | 8 * 1. Redistributions of source code must retain the above copyright notice, |
9 * this list of conditions and the following disclaimer. | 9 * this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright notice, | 10 * 2. Redistributions in binary form must reproduce the above copyright notice, |
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 playout(false), | 201 playout(false), |
202 volume_scale(1.0), | 202 volume_scale(1.0), |
203 volume_pan_left(1.0), | 203 volume_pan_left(1.0), |
204 volume_pan_right(1.0), | 204 volume_pan_right(1.0), |
205 vad(false), | 205 vad(false), |
206 codec_fec(false), | 206 codec_fec(false), |
207 max_encoding_bandwidth(0), | 207 max_encoding_bandwidth(0), |
208 opus_dtx(false), | 208 opus_dtx(false), |
209 red(false), | 209 red(false), |
210 nack(false), | 210 nack(false), |
211 rx_agc_enabled(false), | |
212 rx_agc_mode(webrtc::kAgcDefault), | |
213 cn8_type(13), | 211 cn8_type(13), |
214 cn16_type(105), | 212 cn16_type(105), |
215 dtmf_type(106), | 213 dtmf_type(106), |
216 red_type(117), | 214 red_type(117), |
217 nack_max_packets(0), | 215 nack_max_packets(0), |
218 send_ssrc(0), | 216 send_ssrc(0), |
219 send_audio_level_ext_(-1), | 217 send_audio_level_ext_(-1), |
220 receive_audio_level_ext_(-1), | 218 receive_audio_level_ext_(-1), |
221 send_absolute_sender_time_ext_(-1), | 219 send_absolute_sender_time_ext_(-1), |
222 receive_absolute_sender_time_ext_(-1), | 220 receive_absolute_sender_time_ext_(-1), |
223 associate_send_channel(-1), | 221 associate_send_channel(-1), |
224 neteq_capacity(-1), | 222 neteq_capacity(-1), |
225 neteq_fast_accelerate(false) { | 223 neteq_fast_accelerate(false) { |
226 memset(&send_codec, 0, sizeof(send_codec)); | 224 memset(&send_codec, 0, sizeof(send_codec)); |
227 memset(&rx_agc_config, 0, sizeof(rx_agc_config)); | |
228 } | 225 } |
229 bool external_transport; | 226 bool external_transport; |
230 bool send; | 227 bool send; |
231 bool playout; | 228 bool playout; |
232 float volume_scale; | 229 float volume_scale; |
233 float volume_pan_left; | 230 float volume_pan_left; |
234 float volume_pan_right; | 231 float volume_pan_right; |
235 bool vad; | 232 bool vad; |
236 bool codec_fec; | 233 bool codec_fec; |
237 int max_encoding_bandwidth; | 234 int max_encoding_bandwidth; |
238 bool opus_dtx; | 235 bool opus_dtx; |
239 bool red; | 236 bool red; |
240 bool nack; | 237 bool nack; |
241 bool rx_agc_enabled; | |
242 webrtc::AgcModes rx_agc_mode; | |
243 webrtc::AgcConfig rx_agc_config; | |
244 int cn8_type; | 238 int cn8_type; |
245 int cn16_type; | 239 int cn16_type; |
246 int dtmf_type; | 240 int dtmf_type; |
247 int red_type; | 241 int red_type; |
248 int nack_max_packets; | 242 int nack_max_packets; |
249 uint32_t send_ssrc; | 243 uint32_t send_ssrc; |
250 int send_audio_level_ext_; | 244 int send_audio_level_ext_; |
251 int receive_audio_level_ext_; | 245 int receive_audio_level_ext_; |
252 int send_absolute_sender_time_ext_; | 246 int send_absolute_sender_time_ext_; |
253 int receive_absolute_sender_time_ext_; | 247 int receive_absolute_sender_time_ext_; |
(...skipping 740 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
994 return 0; | 988 return 0; |
995 } | 989 } |
996 WEBRTC_FUNC(GetAecmMode, (webrtc::AecmModes& mode, bool& enabledCNG)) { | 990 WEBRTC_FUNC(GetAecmMode, (webrtc::AecmModes& mode, bool& enabledCNG)) { |
997 mode = aecm_mode_; | 991 mode = aecm_mode_; |
998 enabledCNG = cng_enabled_; | 992 enabledCNG = cng_enabled_; |
999 return 0; | 993 return 0; |
1000 } | 994 } |
1001 WEBRTC_STUB(SetRxNsStatus, (int channel, bool enable, webrtc::NsModes mode)); | 995 WEBRTC_STUB(SetRxNsStatus, (int channel, bool enable, webrtc::NsModes mode)); |
1002 WEBRTC_STUB(GetRxNsStatus, (int channel, bool& enabled, | 996 WEBRTC_STUB(GetRxNsStatus, (int channel, bool& enabled, |
1003 webrtc::NsModes& mode)); | 997 webrtc::NsModes& mode)); |
1004 WEBRTC_FUNC(SetRxAgcStatus, (int channel, bool enable, | 998 WEBRTC_STUB(SetRxAgcStatus, (int channel, bool enable, |
1005 webrtc::AgcModes mode)) { | 999 webrtc::AgcModes mode)); |
1006 channels_[channel]->rx_agc_enabled = enable; | 1000 WEBRTC_STUB(GetRxAgcStatus, (int channel, bool& enabled, |
1007 channels_[channel]->rx_agc_mode = mode; | 1001 webrtc::AgcModes& mode)); |
1008 return 0; | 1002 WEBRTC_STUB(SetRxAgcConfig, (int channel, webrtc::AgcConfig config)); |
1009 } | 1003 WEBRTC_STUB(GetRxAgcConfig, (int channel, webrtc::AgcConfig& config)); |
1010 WEBRTC_FUNC(GetRxAgcStatus, (int channel, bool& enabled, | |
1011 webrtc::AgcModes& mode)) { | |
1012 enabled = channels_[channel]->rx_agc_enabled; | |
1013 mode = channels_[channel]->rx_agc_mode; | |
1014 return 0; | |
1015 } | |
1016 | |
1017 WEBRTC_FUNC(SetRxAgcConfig, (int channel, webrtc::AgcConfig config)) { | |
1018 channels_[channel]->rx_agc_config = config; | |
1019 return 0; | |
1020 } | |
1021 WEBRTC_FUNC(GetRxAgcConfig, (int channel, webrtc::AgcConfig& config)) { | |
1022 config = channels_[channel]->rx_agc_config; | |
1023 return 0; | |
1024 } | |
1025 | 1004 |
1026 WEBRTC_STUB(RegisterRxVadObserver, (int, webrtc::VoERxVadCallback&)); | 1005 WEBRTC_STUB(RegisterRxVadObserver, (int, webrtc::VoERxVadCallback&)); |
1027 WEBRTC_STUB(DeRegisterRxVadObserver, (int channel)); | 1006 WEBRTC_STUB(DeRegisterRxVadObserver, (int channel)); |
1028 WEBRTC_STUB(VoiceActivityIndicator, (int channel)); | 1007 WEBRTC_STUB(VoiceActivityIndicator, (int channel)); |
1029 WEBRTC_FUNC(SetEcMetricsStatus, (bool enable)) { | 1008 WEBRTC_FUNC(SetEcMetricsStatus, (bool enable)) { |
1030 ec_metrics_enabled_ = enable; | 1009 ec_metrics_enabled_ = enable; |
1031 return 0; | 1010 return 0; |
1032 } | 1011 } |
1033 WEBRTC_FUNC(GetEcMetricsStatus, (bool& enabled)) { | 1012 WEBRTC_FUNC(GetEcMetricsStatus, (bool& enabled)) { |
1034 enabled = ec_metrics_enabled_; | 1013 enabled = ec_metrics_enabled_; |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1153 int playout_sample_rate_; | 1132 int playout_sample_rate_; |
1154 DtmfInfo dtmf_info_; | 1133 DtmfInfo dtmf_info_; |
1155 FakeAudioProcessing audio_processing_; | 1134 FakeAudioProcessing audio_processing_; |
1156 }; | 1135 }; |
1157 | 1136 |
1158 #undef WEBRTC_CHECK_HEADER_EXTENSION_ID | 1137 #undef WEBRTC_CHECK_HEADER_EXTENSION_ID |
1159 | 1138 |
1160 } // namespace cricket | 1139 } // namespace cricket |
1161 | 1140 |
1162 #endif // TALK_SESSION_PHONE_FAKEWEBRTCVOICEENGINE_H_ | 1141 #endif // TALK_SESSION_PHONE_FAKEWEBRTCVOICEENGINE_H_ |
OLD | NEW |