Pepper_47_C++_interfaces
|
#include <audio_input_dev.h>
Public Member Functions | |
AudioInput_Dev () | |
An empty constructor for an AudioInput resource. More... | |
AudioInput_Dev (const InstanceHandle &instance) | |
Constructor to create an audio input resource. More... | |
virtual | ~AudioInput_Dev () |
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. More... | |
bool | StartCapture () |
bool | StopCapture () |
void | Close () |
![]() | |
Resource () | |
The default constructor. More... | |
Resource (const Resource &other) | |
virtual | ~Resource () |
Destructor. More... | |
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 | |
![]() | |
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. More... | |
Definition at line 20 of file audio_input_dev.h.
pp::AudioInput_Dev::AudioInput_Dev | ( | ) |
An empty constructor for an AudioInput resource.
Definition at line 26 of file audio_input_dev.cc.
|
explicit |
Constructor to create an audio input resource.
Definition at line 29 of file audio_input_dev.cc.
References pp::Resource::PassRefFromConstructor(), and pp::InstanceHandle::pp_instance().
|
virtual |
Definition at line 39 of file audio_input_dev.cc.
void pp::AudioInput_Dev::Close | ( | ) |
Definition at line 132 of file audio_input_dev.cc.
References pp::Resource::pp_resource().
int32_t pp::AudioInput_Dev::EnumerateDevices | ( | const CompletionCallbackWithOutput< std::vector< DeviceRef_Dev > > & | callback | ) |
Definition at line 48 of file audio_input_dev.cc.
References pp::Resource::pp_resource().
|
static |
Static function for determining whether the browser supports the required AudioInput interface.
Definition at line 43 of file audio_input_dev.cc.
int32_t pp::AudioInput_Dev::MonitorDeviceChange | ( | PP_MonitorDeviceChangeCallback | callback, |
void * | user_data | ||
) |
Definition at line 62 of file audio_input_dev.cc.
References pp::Resource::pp_resource().
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 default device will be used.
Requires PPB_AudioInput_Dev
version 0.4 or up.
Definition at line 77 of file audio_input_dev.cc.
References pp::CompletionCallback::MayForce(), pp::CompletionCallback::pp_completion_callback(), and pp::Resource::pp_resource().
Referenced by Open().
int32_t pp::AudioInput_Dev::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.
Definition at line 91 of file audio_input_dev.cc.
References pp::CompletionCallback::MayForce(), Open(), pp::CompletionCallback::pp_completion_callback(), and pp::Resource::pp_resource().
bool pp::AudioInput_Dev::StartCapture | ( | ) |
Definition at line 106 of file audio_input_dev.cc.
References pp::Resource::pp_resource().
bool pp::AudioInput_Dev::StopCapture | ( | ) |
Definition at line 119 of file audio_input_dev.cc.
References pp::Resource::pp_resource().