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

Unified Diff: media/audio/mac/audio_auhal_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: Rebase. 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
« no previous file with comments | « media/audio/fake_audio_manager.cc ('k') | media/audio/mac/audio_auhal_mac.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/mac/audio_auhal_mac.h
diff --git a/media/audio/mac/audio_auhal_mac.h b/media/audio/mac/audio_auhal_mac.h
index 7ef006f14efdeed1dceefe1f80188702987d01be..b6f14f96093fb0dd239cecae9e280a51647978c3 100644
--- a/media/audio/mac/audio_auhal_mac.h
+++ b/media/audio/mac/audio_auhal_mac.h
@@ -30,6 +30,7 @@
#include "base/synchronization/lock.h"
#include "base/threading/thread_checker.h"
#include "media/audio/audio_io.h"
+#include "media/audio/audio_manager.h"
#include "media/base/audio_parameters.h"
namespace media {
@@ -73,7 +74,8 @@ class AUHALStream : public AudioOutputStream {
// It will often be the default output device.
AUHALStream(AudioManagerMac* manager,
const AudioParameters& params,
- AudioDeviceID device);
+ AudioDeviceID device,
+ const AudioManager::LogCallback& log_callback);
// The dtor is typically called by the AudioManager only and it is usually
// triggered by calling AudioOutputStream::Close().
~AUHALStream() override;
@@ -214,6 +216,9 @@ class AUHALStream : public AudioOutputStream {
// Used to defer Start() to workaround http://crbug.com/160920.
base::CancelableClosure deferred_start_cb_;
+ // Callback to send statistics info.
+ AudioManager::LogCallback log_callback_;
+
// Used to make sure control functions (Start(), Stop() etc) are called on the
// right thread.
base::ThreadChecker thread_checker_;
« no previous file with comments | « media/audio/fake_audio_manager.cc ('k') | media/audio/mac/audio_auhal_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698