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

Side by Side Diff: webrtc/media/engine/webrtcvoiceengine.cc

Issue 2964593002: Adding stats that can be used to compute output audio levels. (Closed)
Patch Set: Add test coverage in AudioSendStreamTest. Created 3 years, 5 months 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
« no previous file with comments | « webrtc/media/base/mediachannel.h ('k') | webrtc/pc/rtcstats_integrationtest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 2230 matching lines...) Expand 10 before | Expand all | Expand 10 after
2241 sinfo.bytes_sent = stats.bytes_sent; 2241 sinfo.bytes_sent = stats.bytes_sent;
2242 sinfo.packets_sent = stats.packets_sent; 2242 sinfo.packets_sent = stats.packets_sent;
2243 sinfo.packets_lost = stats.packets_lost; 2243 sinfo.packets_lost = stats.packets_lost;
2244 sinfo.fraction_lost = stats.fraction_lost; 2244 sinfo.fraction_lost = stats.fraction_lost;
2245 sinfo.codec_name = stats.codec_name; 2245 sinfo.codec_name = stats.codec_name;
2246 sinfo.codec_payload_type = stats.codec_payload_type; 2246 sinfo.codec_payload_type = stats.codec_payload_type;
2247 sinfo.ext_seqnum = stats.ext_seqnum; 2247 sinfo.ext_seqnum = stats.ext_seqnum;
2248 sinfo.jitter_ms = stats.jitter_ms; 2248 sinfo.jitter_ms = stats.jitter_ms;
2249 sinfo.rtt_ms = stats.rtt_ms; 2249 sinfo.rtt_ms = stats.rtt_ms;
2250 sinfo.audio_level = stats.audio_level; 2250 sinfo.audio_level = stats.audio_level;
2251 sinfo.total_input_energy = stats.total_input_energy;
2252 sinfo.total_input_duration = stats.total_input_duration;
2251 sinfo.aec_quality_min = stats.aec_quality_min; 2253 sinfo.aec_quality_min = stats.aec_quality_min;
2252 sinfo.echo_delay_median_ms = stats.echo_delay_median_ms; 2254 sinfo.echo_delay_median_ms = stats.echo_delay_median_ms;
2253 sinfo.echo_delay_std_ms = stats.echo_delay_std_ms; 2255 sinfo.echo_delay_std_ms = stats.echo_delay_std_ms;
2254 sinfo.echo_return_loss = stats.echo_return_loss; 2256 sinfo.echo_return_loss = stats.echo_return_loss;
2255 sinfo.echo_return_loss_enhancement = stats.echo_return_loss_enhancement; 2257 sinfo.echo_return_loss_enhancement = stats.echo_return_loss_enhancement;
2256 sinfo.residual_echo_likelihood = stats.residual_echo_likelihood; 2258 sinfo.residual_echo_likelihood = stats.residual_echo_likelihood;
2257 sinfo.residual_echo_likelihood_recent_max = 2259 sinfo.residual_echo_likelihood_recent_max =
2258 stats.residual_echo_likelihood_recent_max; 2260 stats.residual_echo_likelihood_recent_max;
2259 sinfo.typing_noise_detected = (send_ ? stats.typing_noise_detected : false); 2261 sinfo.typing_noise_detected = (send_ ? stats.typing_noise_detected : false);
2260 info->senders.push_back(sinfo); 2262 info->senders.push_back(sinfo);
(...skipping 10 matching lines...) Expand all
2271 rinfo.packets_lost = stats.packets_lost; 2273 rinfo.packets_lost = stats.packets_lost;
2272 rinfo.fraction_lost = stats.fraction_lost; 2274 rinfo.fraction_lost = stats.fraction_lost;
2273 rinfo.codec_name = stats.codec_name; 2275 rinfo.codec_name = stats.codec_name;
2274 rinfo.codec_payload_type = stats.codec_payload_type; 2276 rinfo.codec_payload_type = stats.codec_payload_type;
2275 rinfo.ext_seqnum = stats.ext_seqnum; 2277 rinfo.ext_seqnum = stats.ext_seqnum;
2276 rinfo.jitter_ms = stats.jitter_ms; 2278 rinfo.jitter_ms = stats.jitter_ms;
2277 rinfo.jitter_buffer_ms = stats.jitter_buffer_ms; 2279 rinfo.jitter_buffer_ms = stats.jitter_buffer_ms;
2278 rinfo.jitter_buffer_preferred_ms = stats.jitter_buffer_preferred_ms; 2280 rinfo.jitter_buffer_preferred_ms = stats.jitter_buffer_preferred_ms;
2279 rinfo.delay_estimate_ms = stats.delay_estimate_ms; 2281 rinfo.delay_estimate_ms = stats.delay_estimate_ms;
2280 rinfo.audio_level = stats.audio_level; 2282 rinfo.audio_level = stats.audio_level;
2283 rinfo.total_output_energy = stats.total_output_energy;
2284 rinfo.total_output_duration = stats.total_output_duration;
2281 rinfo.expand_rate = stats.expand_rate; 2285 rinfo.expand_rate = stats.expand_rate;
2282 rinfo.speech_expand_rate = stats.speech_expand_rate; 2286 rinfo.speech_expand_rate = stats.speech_expand_rate;
2283 rinfo.secondary_decoded_rate = stats.secondary_decoded_rate; 2287 rinfo.secondary_decoded_rate = stats.secondary_decoded_rate;
2284 rinfo.accelerate_rate = stats.accelerate_rate; 2288 rinfo.accelerate_rate = stats.accelerate_rate;
2285 rinfo.preemptive_expand_rate = stats.preemptive_expand_rate; 2289 rinfo.preemptive_expand_rate = stats.preemptive_expand_rate;
2286 rinfo.decoding_calls_to_silence_generator = 2290 rinfo.decoding_calls_to_silence_generator =
2287 stats.decoding_calls_to_silence_generator; 2291 stats.decoding_calls_to_silence_generator;
2288 rinfo.decoding_calls_to_neteq = stats.decoding_calls_to_neteq; 2292 rinfo.decoding_calls_to_neteq = stats.decoding_calls_to_neteq;
2289 rinfo.decoding_normal = stats.decoding_normal; 2293 rinfo.decoding_normal = stats.decoding_normal;
2290 rinfo.decoding_plc = stats.decoding_plc; 2294 rinfo.decoding_plc = stats.decoding_plc;
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
2368 ssrc); 2372 ssrc);
2369 if (it != unsignaled_recv_ssrcs_.end()) { 2373 if (it != unsignaled_recv_ssrcs_.end()) {
2370 unsignaled_recv_ssrcs_.erase(it); 2374 unsignaled_recv_ssrcs_.erase(it);
2371 return true; 2375 return true;
2372 } 2376 }
2373 return false; 2377 return false;
2374 } 2378 }
2375 } // namespace cricket 2379 } // namespace cricket
2376 2380
2377 #endif // HAVE_WEBRTC_VOICE 2381 #endif // HAVE_WEBRTC_VOICE
OLDNEW
« no previous file with comments | « webrtc/media/base/mediachannel.h ('k') | webrtc/pc/rtcstats_integrationtest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698