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

Unified Diff: ppapi/cpp/dev/audio_input_dev.h

Issue 8574029: Microphone support for Pepper Flash. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 9 years, 1 month 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 | « ppapi/c/trusted/ppb_audio_input_trusted_dev.h ('k') | ppapi/cpp/dev/audio_input_dev.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/cpp/dev/audio_input_dev.h
diff --git a/ppapi/cpp/dev/audio_input_dev.h b/ppapi/cpp/dev/audio_input_dev.h
new file mode 100644
index 0000000000000000000000000000000000000000..2a51eb740e002e3306bdf917eeeda3b127aa89b0
--- /dev/null
+++ b/ppapi/cpp/dev/audio_input_dev.h
@@ -0,0 +1,48 @@
+// Copyright (c) 2011 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 PPAPI_CPP_DEV_AUDIO_INPUT_DEV_H_
+#define PPAPI_CPP_DEV_AUDIO_INPUT_DEV_H_
+
+#include "ppapi/c/dev/ppb_audio_input_dev.h"
+#include "ppapi/cpp/audio_config.h"
+#include "ppapi/cpp/resource.h"
+
+namespace pp {
+
+class Instance;
+
+class AudioInput_Dev : public Resource {
+ public:
+ /// An empty constructor for an AudioInput resource.
+ AudioInput_Dev() {}
+
+ AudioInput_Dev(Instance* instance,
+ const AudioConfig& config,
+ PPB_AudioInput_Callback callback,
+ void* user_data);
+
+ /// Getter function for returning the internal <code>PPB_AudioConfig</code>
+ /// struct.
+ ///
+ /// @return A mutable reference to the PPB_AudioConfig struct.
+ AudioConfig& config() { return config_; }
+
+ /// Getter function for returning the internal <code>PPB_AudioConfig</code>
+ /// struct.
+ ///
+ /// @return A const reference to the internal <code>PPB_AudioConfig</code>
+ /// struct.
+ const AudioConfig& config() const { return config_; }
+
+ bool StartCapture();
+ bool StopCapture();
+
+ private:
+ AudioConfig config_;
+};
+
+} // namespace pp
+
+#endif // PPAPI_CPP_DEV_AUDIO_INPUT_DEV_H_
« no previous file with comments | « ppapi/c/trusted/ppb_audio_input_trusted_dev.h ('k') | ppapi/cpp/dev/audio_input_dev.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698