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

Side by Side Diff: webrtc/api/statstypes.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/api/statstypes.h ('k') | webrtc/audio/audio_receive_stream.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 2014 The WebRTC project authors. All Rights Reserved. 2 * Copyright 2014 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 574 matching lines...) Expand 10 before | Expand all | Expand 10 after
585 case kStatsValueNameSecondaryDecodedRate: 585 case kStatsValueNameSecondaryDecodedRate:
586 return "googSecondaryDecodedRate"; 586 return "googSecondaryDecodedRate";
587 case kStatsValueNameSendPacketsDiscarded: 587 case kStatsValueNameSendPacketsDiscarded:
588 return "packetsDiscardedOnSend"; 588 return "packetsDiscardedOnSend";
589 case kStatsValueNameSpeechExpandRate: 589 case kStatsValueNameSpeechExpandRate:
590 return "googSpeechExpandRate"; 590 return "googSpeechExpandRate";
591 case kStatsValueNameSrtpCipher: 591 case kStatsValueNameSrtpCipher:
592 return "srtpCipher"; 592 return "srtpCipher";
593 case kStatsValueNameTargetEncBitrate: 593 case kStatsValueNameTargetEncBitrate:
594 return "googTargetEncBitrate"; 594 return "googTargetEncBitrate";
595 case kStatsValueNameTotalAudioEnergy:
596 return "totalAudioEnergy";
597 case kStatsValueNameTotalSamplesDuration:
598 return "totalSamplesDuration";
595 case kStatsValueNameTransmitBitrate: 599 case kStatsValueNameTransmitBitrate:
596 return "googTransmitBitrate"; 600 return "googTransmitBitrate";
597 case kStatsValueNameTransportType: 601 case kStatsValueNameTransportType:
598 return "googTransportType"; 602 return "googTransportType";
599 case kStatsValueNameTrackId: 603 case kStatsValueNameTrackId:
600 return "googTrackId"; 604 return "googTrackId";
601 case kStatsValueNameTypingNoiseState: 605 case kStatsValueNameTypingNoiseState:
602 return "googTypingNoiseState"; 606 return "googTypingNoiseState";
603 case kStatsValueNameWritable: 607 case kStatsValueNameWritable:
604 return "googWritable"; 608 return "googWritable";
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
782 // Looks for a report with the given |id|. If one is not found, null 786 // Looks for a report with the given |id|. If one is not found, null
783 // will be returned. 787 // will be returned.
784 StatsReport* StatsCollection::Find(const StatsReport::Id& id) { 788 StatsReport* StatsCollection::Find(const StatsReport::Id& id) {
785 RTC_DCHECK(thread_checker_.CalledOnValidThread()); 789 RTC_DCHECK(thread_checker_.CalledOnValidThread());
786 Container::iterator it = std::find_if(list_.begin(), list_.end(), 790 Container::iterator it = std::find_if(list_.begin(), list_.end(),
787 [&id](const StatsReport* r)->bool { return r->id()->Equals(id); }); 791 [&id](const StatsReport* r)->bool { return r->id()->Equals(id); });
788 return it == list_.end() ? nullptr : *it; 792 return it == list_.end() ? nullptr : *it;
789 } 793 }
790 794
791 } // namespace webrtc 795 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/api/statstypes.h ('k') | webrtc/audio/audio_receive_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698