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

Unified Diff: webkit/plugins/ppapi/plugin_delegate.h

Issue 9705056: PepperPlatformAudioInputImpl: support audio input device selection. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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: webkit/plugins/ppapi/plugin_delegate.h
diff --git a/webkit/plugins/ppapi/plugin_delegate.h b/webkit/plugins/ppapi/plugin_delegate.h
index be8cd1635115d4ca2eec7df6c7f36d91c31df58e..91ee5255427c11c2d08c1441df9ae83d10fd159a 100644
--- a/webkit/plugins/ppapi/plugin_delegate.h
+++ b/webkit/plugins/ppapi/plugin_delegate.h
@@ -227,6 +227,14 @@ class PluginDelegate {
virtual ~PlatformAudioOutput() {}
};
+ class PlatformAudioInputClient : public PlatformAudioCommonClient {
+ public:
+ virtual void StreamCreationFailed() = 0;
+
+ protected:
+ virtual ~PlatformAudioInputClient() {}
+ };
+
class PlatformAudioInput {
public:
// Starts the capture. Returns false on error or if called before the
@@ -348,12 +356,14 @@ class PluginDelegate {
uint32_t sample_count,
PlatformAudioCommonClient* client) = 0;
+ // If |device_id| is empty, the default audio input device will be used.
// The caller is responsible for calling Shutdown() on the returned pointer
// to clean up the corresponding resources allocated during this call.
virtual PlatformAudioInput* CreateAudioInput(
+ const std::string& device_id,
uint32_t sample_rate,
uint32_t sample_count,
- PlatformAudioCommonClient* client) = 0;
+ PlatformAudioInputClient* client) = 0;
// A pointer is returned immediately, but it is not ready to be used until
// BrokerConnected has been called.

Powered by Google App Engine
This is Rietveld 408576698