summaryrefslogtreecommitdiffstats
path: root/ppapi/api/trusted
diff options
context:
space:
mode:
authorviettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-17 22:55:30 +0000
committerviettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-17 22:55:30 +0000
commit0ac8fd43e07da4da1eb75eec56dfb60b6c8586f0 (patch)
treed357e1b4f686e703069da6fc98a3d56ec61c61a2 /ppapi/api/trusted
parentf21cf6a82c8f4641a93618b60d107369c92fc0ae (diff)
downloadchromium_src-0ac8fd43e07da4da1eb75eec56dfb60b6c8586f0.zip
chromium_src-0ac8fd43e07da4da1eb75eec56dfb60b6c8586f0.tar.gz
chromium_src-0ac8fd43e07da4da1eb75eec56dfb60b6c8586f0.tar.bz2
Microphone support for Pepper Flash.
[Committing for pbrophy@adobe.com. Original review: http://codereview.chromium.org/8138008/ .] This change supports audio capture from the microphone and supplies the data through a Pepper interface. Its enumeration is limited to the default audio device that uses mono 44.1kHz. TBR=tony@chromium.org Review URL: http://codereview.chromium.org/8574029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110587 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/api/trusted')
-rw-r--r--ppapi/api/trusted/ppb_audio_input_trusted_dev.idl53
1 files changed, 53 insertions, 0 deletions
diff --git a/ppapi/api/trusted/ppb_audio_input_trusted_dev.idl b/ppapi/api/trusted/ppb_audio_input_trusted_dev.idl
new file mode 100644
index 0000000..860c2e3
--- /dev/null
+++ b/ppapi/api/trusted/ppb_audio_input_trusted_dev.idl
@@ -0,0 +1,53 @@
+/* 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.
+ */
+/**
+ * This file defines the trusted audio input interface.
+ */
+
+label Chrome {
+ M17 = 0.1
+};
+
+/**
+ * This interface is to be used by proxy implementations. All
+ * functions should be called from the main thread only. The
+ * resource returned is an Audio input esource; most of the PPB_Audio
+ * interface is also usable on this resource.
+ */
+[version=0.1, macro="PPB_AUDIO_INPUT_TRUSTED_DEV_INTERFACE"]
+interface PPB_AudioInputTrusted_Dev {
+ /** Returns an audio input resource. */
+ PP_Resource CreateTrusted(
+ [in] PP_Instance instance);
+
+ /**
+ * Opens a paused audio interface, used by trusted side of proxy.
+ * Returns PP_ERROR_WOULD_BLOCK on success, and invokes
+ * the |create_callback| asynchronously to complete.
+ * As this function should always be invoked from the main thread,
+ * do not use the blocking variant of PP_CompletionCallback.
+ */
+ int32_t Open(
+ [in] PP_Resource audio_input,
+ [in] PP_Resource config,
+ [in] PP_CompletionCallback create_callback);
+
+ /**
+ * Get the sync socket. Use once Open has completed.
+ * Returns PP_OK on success.
+ */
+ int32_t GetSyncSocket(
+ [in] PP_Resource audio_input,
+ [out] handle_t sync_socket);
+
+ /**
+ * Get the shared memory interface. Use once Open has completed.
+ * Returns PP_OK on success.
+ */
+ int32_t GetSharedMemory(
+ [in] PP_Resource audio_input,
+ [out] handle_t shm_handle,
+ [out] uint32_t shm_size);
+};