diff options
author | ajwong@chromium.org <ajwong@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-17 23:49:56 +0000 |
---|---|---|
committer | ajwong@chromium.org <ajwong@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-17 23:49:56 +0000 |
commit | 7aac3055e4809d516b05ddb9dd063346c2f94514 (patch) | |
tree | 17062b983be0063e60d63709065797f9aa61cc57 /ppapi/api | |
parent | 81c5deaba63aaddb9fcac95b4c1364f19edd6270 (diff) | |
download | chromium_src-7aac3055e4809d516b05ddb9dd063346c2f94514.zip chromium_src-7aac3055e4809d516b05ddb9dd063346c2f94514.tar.gz chromium_src-7aac3055e4809d516b05ddb9dd063346c2f94514.tar.bz2 |
Revert 110587 - 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
TBR=viettrungluu@chromium.org
Review URL: http://codereview.chromium.org/8569003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110602 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/api')
-rw-r--r-- | ppapi/api/dev/ppb_audio_input_dev.idl | 94 | ||||
-rw-r--r-- | ppapi/api/trusted/ppb_audio_input_trusted_dev.idl | 53 |
2 files changed, 0 insertions, 147 deletions
diff --git a/ppapi/api/dev/ppb_audio_input_dev.idl b/ppapi/api/dev/ppb_audio_input_dev.idl deleted file mode 100644 index ba6b578..0000000 --- a/ppapi/api/dev/ppb_audio_input_dev.idl +++ /dev/null @@ -1,94 +0,0 @@ -/* 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 <code>PPB_AudioInput_Dev</code> interface, which - * provides realtime audio input capture. - */ - -label Chrome { - M17 = 0.1 -}; - -/** - * <code>PPB_AudioInput_Callback</code> defines the type of an audio callback - * function used to provide the audio buffer with data. This callback will be - * called on a separate thread to the creation thread. - */ -typedef void PPB_AudioInput_Callback([out] mem_t sample_buffer, - [in] uint32_t buffer_size_in_bytes, - [inout] mem_t user_data); - -/** - * The <code>PPB_AudioInput_Dev</code> interface contains pointers to several - * functions for handling audio input resources. - */ -[version=0.1, macro="PPB_AUDIO_INPUT_DEV_INTERFACE"] -interface PPB_AudioInput_Dev { - /** - * Create is a pointer to a function that creates an audio input resource. - * No sound will be captured until StartCapture() is called. - */ - PP_Resource Create( - [in] PP_Instance instance, - [in] PP_Resource config, - [in] PPB_AudioInput_Callback audio_input_callback, - [inout] mem_t user_data); - - /** - * IsAudioInput is a pointer to a function that determines if the given - * resource is an audio input resource. - * - * @param[in] resource A PP_Resource containing a resource. - * - * @return A PP_BOOL containing containing PP_TRUE if the given resource is - * an audio input resource, otherwise PP_FALSE. - */ - PP_Bool IsAudioInput( - [in] PP_Resource audio_input); - - /** - * GetCurrrentConfig() returns an audio config resource for the given audio - * resource. - * - * @param[in] config A <code>PP_Resource</code> corresponding to an audio - * resource. - * - * @return A <code>PP_Resource</code> containing the audio config resource if - * successful. - */ - PP_Resource GetCurrentConfig( - [in] PP_Resource audio_input); - - /** - * StartCapture() starts the capture of the audio input resource and begins - * periodically calling the callback. - * - * @param[in] config A <code>PP_Resource</code> corresponding to an audio - * input resource. - * - * @return A <code>PP_Bool</code> containing <code>PP_TRUE</code> if - * successful, otherwise <code>PP_FALSE</code>. Also returns - * <code>PP_TRUE</code> (and be a no-op) if called while callback is already - * in progress. - */ - PP_Bool StartCapture( - [in] PP_Resource audio_input); - - /** - * StopCapture is a pointer to a function that stops the capture of - * the audio input resource. - * - * @param[in] config A PP_Resource containing the audio input resource. - * - * @return A PP_BOOL containing PP_TRUE if successful, otherwise PP_FALSE. - * Also returns PP_TRUE (and is a no-op) if called while capture is already - * stopped. If a buffer is being captured, StopCapture will block until the - * call completes. - */ - PP_Bool StopCapture( - [in] PP_Resource audio_input); -}; - diff --git a/ppapi/api/trusted/ppb_audio_input_trusted_dev.idl b/ppapi/api/trusted/ppb_audio_input_trusted_dev.idl deleted file mode 100644 index 860c2e3..0000000 --- a/ppapi/api/trusted/ppb_audio_input_trusted_dev.idl +++ /dev/null @@ -1,53 +0,0 @@ -/* 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); -}; |