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); |
+}; |
/** |
* @} |
*/ |