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

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

Issue 2503383002: Expose RtpCodecParameters to VoiceMediaInfo stats. (Closed)
Patch Set: Addressed comments, using int Created 4 years, 1 month 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 | « no previous file | webrtc/api/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
11 #ifndef WEBRTC_API_CALL_AUDIO_RECEIVE_STREAM_H_ 11 #ifndef WEBRTC_API_CALL_AUDIO_RECEIVE_STREAM_H_
12 #define WEBRTC_API_CALL_AUDIO_RECEIVE_STREAM_H_ 12 #define WEBRTC_API_CALL_AUDIO_RECEIVE_STREAM_H_
13 13
14 #include <map> 14 #include <map>
15 #include <memory> 15 #include <memory>
16 #include <string> 16 #include <string>
17 #include <vector> 17 #include <vector>
18 18
19 #include "webrtc/base/optional.h"
19 #include "webrtc/base/scoped_ref_ptr.h" 20 #include "webrtc/base/scoped_ref_ptr.h"
20 #include "webrtc/modules/audio_coding/codecs/audio_decoder_factory.h" 21 #include "webrtc/modules/audio_coding/codecs/audio_decoder_factory.h"
21 #include "webrtc/common_types.h" 22 #include "webrtc/common_types.h"
22 #include "webrtc/config.h" 23 #include "webrtc/config.h"
23 #include "webrtc/transport.h" 24 #include "webrtc/transport.h"
24 #include "webrtc/typedefs.h" 25 #include "webrtc/typedefs.h"
25 26
26 namespace webrtc { 27 namespace webrtc {
27 class AudioSinkInterface; 28 class AudioSinkInterface;
28 29
29 // WORK IN PROGRESS 30 // WORK IN PROGRESS
30 // This class is under development and is not yet intended for for use outside 31 // This class is under development and is not yet intended for for use outside
31 // of WebRtc/Libjingle. Please use the VoiceEngine API instead. 32 // of WebRtc/Libjingle. Please use the VoiceEngine API instead.
32 // See: https://bugs.chromium.org/p/webrtc/issues/detail?id=4690 33 // See: https://bugs.chromium.org/p/webrtc/issues/detail?id=4690
33 34
34 class AudioReceiveStream { 35 class AudioReceiveStream {
35 public: 36 public:
36 struct Stats { 37 struct Stats {
37 uint32_t remote_ssrc = 0; 38 uint32_t remote_ssrc = 0;
38 int64_t bytes_rcvd = 0; 39 int64_t bytes_rcvd = 0;
39 uint32_t packets_rcvd = 0; 40 uint32_t packets_rcvd = 0;
40 uint32_t packets_lost = 0; 41 uint32_t packets_lost = 0;
41 float fraction_lost = 0.0f; 42 float fraction_lost = 0.0f;
42 std::string codec_name; 43 std::string codec_name;
44 rtc::Optional<int> codec_payload_type;
43 uint32_t ext_seqnum = 0; 45 uint32_t ext_seqnum = 0;
44 uint32_t jitter_ms = 0; 46 uint32_t jitter_ms = 0;
45 uint32_t jitter_buffer_ms = 0; 47 uint32_t jitter_buffer_ms = 0;
46 uint32_t jitter_buffer_preferred_ms = 0; 48 uint32_t jitter_buffer_preferred_ms = 0;
47 uint32_t delay_estimate_ms = 0; 49 uint32_t delay_estimate_ms = 0;
48 int32_t audio_level = -1; 50 int32_t audio_level = -1;
49 float expand_rate = 0.0f; 51 float expand_rate = 0.0f;
50 float speech_expand_rate = 0.0f; 52 float speech_expand_rate = 0.0f;
51 float secondary_decoded_rate = 0.0f; 53 float secondary_decoded_rate = 0.0f;
52 float accelerate_rate = 0.0f; 54 float accelerate_rate = 0.0f;
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 // Sets playback gain of the stream, applied when mixing, and thus after it 133 // Sets playback gain of the stream, applied when mixing, and thus after it
132 // is potentially forwarded to any attached AudioSinkInterface implementation. 134 // is potentially forwarded to any attached AudioSinkInterface implementation.
133 virtual void SetGain(float gain) = 0; 135 virtual void SetGain(float gain) = 0;
134 136
135 protected: 137 protected:
136 virtual ~AudioReceiveStream() {} 138 virtual ~AudioReceiveStream() {}
137 }; 139 };
138 } // namespace webrtc 140 } // namespace webrtc
139 141
140 #endif // WEBRTC_API_CALL_AUDIO_RECEIVE_STREAM_H_ 142 #endif // WEBRTC_API_CALL_AUDIO_RECEIVE_STREAM_H_
OLDNEW
« no previous file with comments | « no previous file | webrtc/api/call/audio_send_stream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698