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

Side by Side Diff: webrtc/call/audio_receive_stream.h

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/audio/audio_send_stream_unittest.cc ('k') | webrtc/call/audio_send_stream.h » ('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) 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 uint32_t packets_lost = 0; 42 uint32_t packets_lost = 0;
43 float fraction_lost = 0.0f; 43 float fraction_lost = 0.0f;
44 std::string codec_name; 44 std::string codec_name;
45 rtc::Optional<int> codec_payload_type; 45 rtc::Optional<int> codec_payload_type;
46 uint32_t ext_seqnum = 0; 46 uint32_t ext_seqnum = 0;
47 uint32_t jitter_ms = 0; 47 uint32_t jitter_ms = 0;
48 uint32_t jitter_buffer_ms = 0; 48 uint32_t jitter_buffer_ms = 0;
49 uint32_t jitter_buffer_preferred_ms = 0; 49 uint32_t jitter_buffer_preferred_ms = 0;
50 uint32_t delay_estimate_ms = 0; 50 uint32_t delay_estimate_ms = 0;
51 int32_t audio_level = -1; 51 int32_t audio_level = -1;
52 // See description of "totalAudioEnergy" in the WebRTC stats spec:
53 // https://w3c.github.io/webrtc-stats/#dom-rtcmediastreamtrackstats-totalaud ioenergy
54 double total_output_energy = 0.0;
55 double total_output_duration = 0.0;
52 float expand_rate = 0.0f; 56 float expand_rate = 0.0f;
53 float speech_expand_rate = 0.0f; 57 float speech_expand_rate = 0.0f;
54 float secondary_decoded_rate = 0.0f; 58 float secondary_decoded_rate = 0.0f;
55 float accelerate_rate = 0.0f; 59 float accelerate_rate = 0.0f;
56 float preemptive_expand_rate = 0.0f; 60 float preemptive_expand_rate = 0.0f;
57 int32_t decoding_calls_to_silence_generator = 0; 61 int32_t decoding_calls_to_silence_generator = 0;
58 int32_t decoding_calls_to_neteq = 0; 62 int32_t decoding_calls_to_neteq = 0;
59 int32_t decoding_normal = 0; 63 int32_t decoding_normal = 0;
60 int32_t decoding_plc = 0; 64 int32_t decoding_plc = 0;
61 int32_t decoding_cng = 0; 65 int32_t decoding_cng = 0;
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 virtual void SetGain(float gain) = 0; 139 virtual void SetGain(float gain) = 0;
136 140
137 virtual std::vector<RtpSource> GetSources() const = 0; 141 virtual std::vector<RtpSource> GetSources() const = 0;
138 142
139 protected: 143 protected:
140 virtual ~AudioReceiveStream() {} 144 virtual ~AudioReceiveStream() {}
141 }; 145 };
142 } // namespace webrtc 146 } // namespace webrtc
143 147
144 #endif // WEBRTC_CALL_AUDIO_RECEIVE_STREAM_H_ 148 #endif // WEBRTC_CALL_AUDIO_RECEIVE_STREAM_H_
OLDNEW
« no previous file with comments | « webrtc/audio/audio_send_stream_unittest.cc ('k') | webrtc/call/audio_send_stream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698