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

Unified Diff: media/audio/audio_io.h

Issue 2582703003: Audio output debug recording. (Closed)
Patch Set: Code review (dalecurtis@ and maxmorin@). 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_io.h
diff --git a/media/audio/audio_io.h b/media/audio/audio_io.h
index 6ab50aa952e88e5ca97c3d903d40da530d59e104..060f2f6ec5c446e76455b07a9672865025bcfa5c 100644
--- a/media/audio/audio_io.h
+++ b/media/audio/audio_io.h
@@ -7,6 +7,7 @@
#include <stdint.h>
+#include "base/files/file_path.h"
#include "base/time/time.h"
#include "media/base/audio_bus.h"
@@ -106,6 +107,12 @@ class MEDIA_EXPORT AudioOutputStream {
// Gets the relative volume, with range [0.0, 1.0] inclusive.
virtual void GetVolume(double* volume) = 0;
+ // Enable debug recording. A file type extension is added to |file_name|.
+ virtual void EnableDebugRecording(const base::FilePath& file_name) = 0;
+
+ // Disable debug recording.
+ virtual void DisableDebugRecording() = 0;
+
// Close the stream. This also generates AudioSourceCallback::OnClose().
// After calling this method, the object should not be used anymore.
virtual void Close() = 0;

Powered by Google App Engine
This is Rietveld 408576698