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

Unified Diff: media/audio/audio_output_resampler.h

Issue 2582703003: Audio output debug recording. (Closed)
Patch Set: Reworked callbacks and interfaces. Created 3 years, 11 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/audio_output_resampler.h
diff --git a/media/audio/audio_output_resampler.h b/media/audio/audio_output_resampler.h
index da512e09ebc345934a326a8c367678f639678067..4b4d3249120dcb0c11cb341c0fc3721f3c5dbefb 100644
--- a/media/audio/audio_output_resampler.h
+++ b/media/audio/audio_output_resampler.h
@@ -10,6 +10,7 @@
#include "base/macros.h"
#include "base/time/time.h"
#include "base/timer/timer.h"
+#include "media/audio/audio_debug_recording_manager.h"
#include "media/audio/audio_io.h"
#include "media/audio/audio_manager.h"
#include "media/audio/audio_output_dispatcher_impl.h"
@@ -35,7 +36,9 @@ class MEDIA_EXPORT AudioOutputResampler : public AudioOutputDispatcher {
const AudioParameters& input_params,
const AudioParameters& output_params,
const std::string& output_device_id,
- const base::TimeDelta& close_delay);
+ base::TimeDelta close_delay,
+ const RegisterDebugRecordingSourceCallback&
+ register_debug_recording_source_callback);
~AudioOutputResampler() override;
// AudioOutputDispatcher interface.
@@ -90,6 +93,10 @@ class MEDIA_EXPORT AudioOutputResampler : public AudioOutputDispatcher {
// to a fake stream indefinitely for transient errors.
base::Timer reinitialize_timer_;
+ // Callback for registering debug recording source.
+ RegisterDebugRecordingSourceCallback
+ register_debug_recording_source_callback_;
+
base::WeakPtrFactory<AudioOutputResampler> weak_factory_;
DISALLOW_COPY_AND_ASSIGN(AudioOutputResampler);
};

Powered by Google App Engine
This is Rietveld 408576698