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

Unified Diff: media/audio/audio_io.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
« no previous file with comments | « no previous file | media/audio/audio_output_controller.h » ('j') | media/audio/audio_output_controller.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/audio_io.h
diff --git a/media/audio/audio_io.h b/media/audio/audio_io.h
index e09b36eac2f88b61f8c530bcb4f296560cebd80f..4adab19d6650672cb845e4782137ab6a1751604b 100644
--- a/media/audio/audio_io.h
+++ b/media/audio/audio_io.h
@@ -48,6 +48,10 @@
// by |samples_per_packet| specified in AudioParameters when the stream is
// created.
+namespace base {
+class FilePath;
+}
+
namespace media {
class MEDIA_EXPORT AudioOutputStream {
@@ -104,6 +108,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.
+ 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;
« no previous file with comments | « no previous file | media/audio/audio_output_controller.h » ('j') | media/audio/audio_output_controller.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698