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

Unified Diff: media/audio/mac/audio_low_latency_input_mac.h

Issue 1864483002: Forward output glitch information from stream WebRTC log (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Finished up for review. Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: media/audio/mac/audio_low_latency_input_mac.h
diff --git a/media/audio/mac/audio_low_latency_input_mac.h b/media/audio/mac/audio_low_latency_input_mac.h
index 332828b783f3c978a215ec96095b30bf0dca6b3c..67dfb40da12edc17af4ae2123a6025ded5464d04 100644
--- a/media/audio/mac/audio_low_latency_input_mac.h
+++ b/media/audio/mac/audio_low_latency_input_mac.h
@@ -66,9 +66,11 @@ class MEDIA_EXPORT AUAudioInputStream
public:
// The ctor takes all the usual parameters, plus |manager| which is the
// the audio manager who is creating this object.
- AUAudioInputStream(AudioManagerMac* manager,
- const AudioParameters& input_params,
- AudioDeviceID audio_device_id);
+ AUAudioInputStream(
+ AudioManagerMac* manager,
+ const AudioParameters& input_params,
+ AudioDeviceID audio_device_id,
+ const AudioManager::StatisticsCallback& statistics_callback);
// The dtor is typically called by the AudioManager only and it is usually
// triggered by calling AudioInputStream::Close().
~AUAudioInputStream() override;
@@ -324,6 +326,9 @@ class MEDIA_EXPORT AUAudioInputStream
// set to zero once in the constructor and then never reset again.
size_t total_number_of_restart_attempts_;
+ // Sends statistics info.
+ AudioManager::StatisticsCallback statistics_callback_;
+
// Used to ensure DevicePropertyChangedOnMainThread() is not called when
// this object is destroyed.
// Note that, all member variables should appear before the WeakPtrFactory.

Powered by Google App Engine
This is Rietveld 408576698