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|. |
DaleCurtis
2017/01/19 17:44:34
Hmm this is an API only AudioManager should use, s
Henrik Grunell
2017/01/19 20:32:39
How could AudioOutputResampler do this without an
DaleCurtis
2017/01/19 22:37:29
AODI is only used for fake streams these days, so
Henrik Grunell
2017/01/20 10:38:56
Oh, I think you mean that recording is done in AOR
DaleCurtis
2017/01/20 17:52:20
Yeah, stuff like the rebuffering in OSX wouldn't b
|
+ 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; |