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

Unified Diff: ppapi/c/dev/ppb_audio_input_dev.h

Issue 8981009: New Pepper interfaces for audio/video capture device enumeration. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Make changes in response to Trung's suggestions. Created 9 years 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/api/dev/ppb_video_capture_dev.idl ('k') | ppapi/c/dev/ppb_device_enumerator_dev.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/c/dev/ppb_audio_input_dev.h
diff --git a/ppapi/c/dev/ppb_audio_input_dev.h b/ppapi/c/dev/ppb_audio_input_dev.h
index 73d9bc5b3bfe0c64174416cf9bac94ea75c9d13e..8ad51038f8a3dd87ce5d69f053d4937fe0d86052 100644
--- a/ppapi/c/dev/ppb_audio_input_dev.h
+++ b/ppapi/c/dev/ppb_audio_input_dev.h
@@ -3,7 +3,7 @@
* found in the LICENSE file.
*/
-/* From dev/ppb_audio_input_dev.idl modified Wed Nov 23 09:26:09 2011. */
+/* From dev/ppb_audio_input_dev.idl modified Mon Dec 19 10:36:14 2011. */
#ifndef PPAPI_C_DEV_PPB_AUDIO_INPUT_DEV_H_
#define PPAPI_C_DEV_PPB_AUDIO_INPUT_DEV_H_
@@ -15,7 +15,8 @@
#include "ppapi/c/pp_stdint.h"
#define PPB_AUDIO_INPUT_DEV_INTERFACE_0_1 "PPB_AudioInput(Dev);0.1"
-#define PPB_AUDIO_INPUT_DEV_INTERFACE PPB_AUDIO_INPUT_DEV_INTERFACE_0_1
+#define PPB_AUDIO_INPUT_DEV_INTERFACE_0_2 "PPB_AudioInput(Dev);0.2"
+#define PPB_AUDIO_INPUT_DEV_INTERFACE PPB_AUDIO_INPUT_DEV_INTERFACE_0_2
/**
* @file
@@ -52,8 +53,12 @@ struct 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.
+ *
+ * @param[in] device_ref A <code>PP_Resource</code> identifying an audio
+ * input device, returned by <code>PPB_DeviceEnumerator_Dev</code>.
*/
PP_Resource (*Create)(PP_Instance instance,
+ PP_Resource device_ref,
PP_Resource config,
PPB_AudioInput_Callback audio_input_callback,
void* user_data);
@@ -104,6 +109,17 @@ struct PPB_AudioInput_Dev {
*/
PP_Bool (*StopCapture)(PP_Resource audio_input);
};
+
+struct PPB_AudioInput_Dev_0_1 {
+ PP_Resource (*Create)(PP_Instance instance,
+ PP_Resource config,
+ PPB_AudioInput_Callback audio_input_callback,
+ void* user_data);
+ PP_Bool (*IsAudioInput)(PP_Resource audio_input);
+ PP_Resource (*GetCurrentConfig)(PP_Resource audio_input);
+ PP_Bool (*StartCapture)(PP_Resource audio_input);
+ PP_Bool (*StopCapture)(PP_Resource audio_input);
+};
/**
* @}
*/
« no previous file with comments | « ppapi/api/dev/ppb_video_capture_dev.idl ('k') | ppapi/c/dev/ppb_device_enumerator_dev.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698