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

Unified Diff: media/audio/audio_input_writer.h

Issue 1272223003: Implement writing mic audio input data to file for debugging purposes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 5 years, 3 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
« no previous file with comments | « media/audio/audio_input_controller.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/audio_input_writer.h
diff --git a/media/audio/audio_input_writer.h b/media/audio/audio_input_writer.h
new file mode 100644
index 0000000000000000000000000000000000000000..700570b0318eedfecd29278bcb9f8d65a3004ae6
--- /dev/null
+++ b/media/audio/audio_input_writer.h
@@ -0,0 +1,24 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef MEDIA_AUDIO_AUDIO_INPUT_WRITER_H_
+#define MEDIA_AUDIO_AUDIO_INPUT_WRITER_H_
+
+namespace media {
+
+class AudioBus;
+
+// A writer interface used by AudioInputController for writing audio data to
+// file for debugging purposes.
+class AudioInputWriter {
+ public:
+ virtual ~AudioInputWriter() {}
+
+ // Write |data| to file.
+ virtual void Write(scoped_ptr<AudioBus> data) = 0;
+};
+
+} // namspace media
+
+#endif // MEDIA_AUDIO_AUDIO_INPUT_WRITER_H_
« no previous file with comments | « media/audio/audio_input_controller.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698