|
Pepper_56_C++_interfaces
Pepper_56_C++_interfaces
|
Public Member Functions | |
| AudioInput_Dev () | |
| An empty constructor for an AudioInput resource. | |
| AudioInput_Dev (const InstanceHandle &instance) | |
| Constructor to create an audio input resource. | |
| int32_t | EnumerateDevices (const CompletionCallbackWithOutput< std::vector< DeviceRef_Dev > > &callback) |
| int32_t | MonitorDeviceChange (PP_MonitorDeviceChangeCallback callback, void *user_data) |
| int32_t | Open (const DeviceRef_Dev &device_ref, const AudioConfig &config, PPB_AudioInput_Callback audio_input_callback, void *user_data, const CompletionCallback &callback) |
| int32_t | Open (const DeviceRef_Dev &device_ref, const AudioConfig &config, PPB_AudioInput_Callback_0_3 audio_input_callback_0_3, void *user_data, const CompletionCallback &callback) |
Requires PPB_AudioInput_Dev version 0.3. | |
| bool | StartCapture () |
| bool | StopCapture () |
| void | Close () |
Public Member Functions inherited from pp::Resource | |
| Resource () | |
| The default constructor. | |
| Resource (const Resource &other) | |
| virtual | ~Resource () |
| Destructor. | |
| Resource & | operator= (const Resource &other) |
| bool | is_null () const |
| PP_Resource | pp_resource () const |
| PP_Resource | detach () |
Static Public Member Functions | |
| static bool | IsAvailable () |
Additional Inherited Members | |
Protected Member Functions inherited from pp::Resource | |
| Resource (PP_Resource resource) | |
| Resource (PassRef, PP_Resource resource) | |
| void | PassRefFromConstructor (PP_Resource resource) |
| void | Clear () |
| Sets this resource to null. This releases ownership of the resource. | |
|
static |
Static function for determining whether the browser supports the required AudioInput interface.
| int32_t pp::AudioInput_Dev::Open | ( | const DeviceRef_Dev & | device_ref, |
| const AudioConfig & | config, | ||
| PPB_AudioInput_Callback | audio_input_callback, | ||
| void * | user_data, | ||
| const CompletionCallback & | callback | ||
| ) |
If |device_ref| is null (i.e., is_null() returns true), the function will fail. The default device is not supported.
Requires PPB_AudioInput_Dev version 0.4 or up.