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

Unified Diff: media/audio/audio_output_controller.h

Issue 2582703003: Audio output debug recording. (Closed)
Patch Set: Created 4 years 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_controller.h
diff --git a/media/audio/audio_output_controller.h b/media/audio/audio_output_controller.h
index f3d4b428425134b89f62f844ca889b9cd994f8a8..3e895a497264cf5ed6be4093942edfd1fe0040f7 100644
--- a/media/audio/audio_output_controller.h
+++ b/media/audio/audio_output_controller.h
@@ -189,6 +189,12 @@ class MEDIA_EXPORT AudioOutputController
// audio_power_monitor.h for usage. This may be called on any thread.
std::pair<float, bool> ReadCurrentPowerAndClip();
+ // Enable debug recording of audio.
+ void EnableDebugRecording(const base::FilePath& file_name);
+
+ // Disable debug recording of audio.
+ void DisableDebugRecording();
+
protected:
// Internal state of the source.
enum State {
@@ -240,6 +246,12 @@ class MEDIA_EXPORT AudioOutputController
void BroadcastDataToDuplicationTargets(std::unique_ptr<AudioBus> audio_bus,
base::TimeTicks reference_time);
+ // Enable debug recording of audio.
+ void DoEnableDebugRecording(const base::FilePath& file_name);
+
+ // Disable debug recording of audio.
+ void DoDisableDebugRecording();
+
AudioManager* const audio_manager_;
const AudioParameters params_;
EventHandler* const handler_;

Powered by Google App Engine
This is Rietveld 408576698