cinder::audio::Input Class Reference
#include <Input.h>
List of all members.
Member Typedef Documentation
Emulates shared_ptr-like behavior.
Constructor & Destructor Documentation
cinder::audio::Input::Input |
( |
|
) |
|
cinder::audio::Input::~Input |
( |
|
) |
|
Member Function Documentation
void cinder::audio::Input::start |
( |
|
) |
|
Starts capturing audio data from the input.
void cinder::audio::Input::stop |
( |
|
) |
|
Stops capturing audio data from the input.
Returns a copy of the buffer of the most recently captured audio data.
bool cinder::audio::Input::isCapturing |
( |
|
) |
const |
Returns whether or not the input is currently capturing audio data.
uint32_t cinder::audio::Input::getSampleRate |
( |
|
) |
|
Returns the sample rate of the captured audio data.
uint16_t cinder::audio::Input::getChannelCount |
( |
|
) |
|
Returns the number of channels of the captured audio data.
const std::vector< InputDeviceRef > & cinder::audio::Input::getDevices |
( |
bool |
forceRefresh = false |
) |
[static] |
Returns a vector of all Devices connected to the system. If forceRefresh then the system will be polled for connected devices.
Gets the default audio input device.
InputDeviceRef cinder::audio::Input::findDeviceByName |
( |
const std::string & |
name |
) |
[static] |
Finds a particular device based on its name.
InputDeviceRef cinder::audio::Input::findDeviceByNameContains |
( |
const std::string & |
nameFragment |
) |
[static] |
Finds the first device whose name contains the string nameFragment.
Emulates shared_ptr-like behavior.
void cinder::audio::Input::reset |
( |
|
) |
|
Emulates shared_ptr-like behavior.
The documentation for this class was generated from the following files: