portaudioPlayer
: Documentation to be added
More...
#include <portaudioPlayer/PortAudioPlayerDeviceDriver.h>
Public Member Functions | |
PortAudioPlayerDeviceDriver () | |
PortAudioPlayerDeviceDriver (const PortAudioPlayerDeviceDriver &)=delete | |
PortAudioPlayerDeviceDriver (PortAudioPlayerDeviceDriver &&)=delete | |
PortAudioPlayerDeviceDriver & | operator= (const PortAudioPlayerDeviceDriver &)=delete |
PortAudioPlayerDeviceDriver & | operator= (PortAudioPlayerDeviceDriver &&)=delete |
~PortAudioPlayerDeviceDriver () override | |
bool | open (yarp::os::Searchable &config) override |
Open the DeviceDriver. More... | |
bool | open (PortAudioPlayerDeviceDriverSettings &config) |
Configures the device. More... | |
bool | close () override |
Close the DeviceDriver. More... | |
bool | renderSound (const yarp::sig::Sound &sound) override |
Render a sound using a device (i.e. More... | |
bool | startPlayback () override |
Start the playback. More... | |
bool | stopPlayback () override |
Stop the playback. More... | |
bool | abortSound () |
bool | immediateSound (const yarp::sig::Sound &sound) |
bool | appendSound (const yarp::sig::Sound &sound) |
bool | getPlaybackAudioBufferMaxSize (yarp::dev::AudioBufferSize &size) override |
bool | getPlaybackAudioBufferCurrentSize (yarp::dev::AudioBufferSize &size) override |
bool | resetPlaybackAudioBuffer () override |
Public Member Functions inherited from yarp::dev::IAudioRender | |
virtual | ~IAudioRender () |
Destructor. More... | |
Public Member Functions inherited from yarp::dev::DeviceDriver | |
~DeviceDriver () override=default | |
Destructor. More... | |
template<class T > | |
bool | view (T *&x) |
Get an interface to the device driver. More... | |
virtual DeviceDriver * | getImplementation () |
Some drivers are bureaucrats, pointing at others. More... | |
Public Member Functions inherited from yarp::os::IConfig | |
virtual | ~IConfig () |
Destructor. More... | |
virtual bool | configure (Searchable &config) |
Change online parameters. More... | |
Protected Types | |
enum | { RENDER_APPEND =0, RENDER_IMMEDIATE =1 } |
Protected Member Functions | |
void | handleError () |
Protected Attributes | |
void * | m_system_resource |
PortAudioPlayerDeviceDriverSettings | m_driverConfig |
enum PortAudioPlayerDeviceDriver:: { ... } | renderMode |
portaudioPlayer
: Documentation to be added
Requires the PortAudio library (http://www.portaudio.com), at least v19.
Definition at line 71 of file PortAudioPlayerDeviceDriver.h.
|
protected |
Enumerator | |
---|---|
RENDER_APPEND | |
RENDER_IMMEDIATE |
Definition at line 127 of file PortAudioPlayerDeviceDriver.h.
PortAudioPlayerDeviceDriver::PortAudioPlayerDeviceDriver | ( | ) |
Definition at line 200 of file PortAudioPlayerDeviceDriver.cpp.
|
delete |
|
delete |
|
override |
Definition at line 210 of file PortAudioPlayerDeviceDriver.cpp.
bool PortAudioPlayerDeviceDriver::abortSound | ( | ) |
Definition at line 323 of file PortAudioPlayerDeviceDriver.cpp.
bool PortAudioPlayerDeviceDriver::appendSound | ( | const yarp::sig::Sound & | sound | ) |
Definition at line 405 of file PortAudioPlayerDeviceDriver.cpp.
|
overridevirtual |
Close the DeviceDriver.
Reimplemented from yarp::dev::DeviceDriver.
Definition at line 300 of file PortAudioPlayerDeviceDriver.cpp.
|
overridevirtual |
Implements yarp::dev::IAudioRender.
Definition at line 419 of file PortAudioPlayerDeviceDriver.cpp.
|
overridevirtual |
Implements yarp::dev::IAudioRender.
Definition at line 426 of file PortAudioPlayerDeviceDriver.cpp.
|
protected |
Definition at line 287 of file PortAudioPlayerDeviceDriver.cpp.
bool PortAudioPlayerDeviceDriver::immediateSound | ( | const yarp::sig::Sound & | sound | ) |
Definition at line 339 of file PortAudioPlayerDeviceDriver.cpp.
bool PortAudioPlayerDeviceDriver::open | ( | PortAudioPlayerDeviceDriverSettings & | config | ) |
Configures the device.
rate: Sample rate to use, in Hertz. Specify 0 to use a default.
samples: Number of samples per call to getSound. Specify 0 to use a default.
channels: Number of channels of input. Specify 0 to use a default.
Definition at line 235 of file PortAudioPlayerDeviceDriver.cpp.
|
overridevirtual |
Open the DeviceDriver.
config | is a list of parameters for the device. Which parameters are effective for your device can vary. See device invocation examples. If there is no example for your device, you can run the "yarpdev" program with the verbose flag set to probe what parameters the device is checking. If that fails too, you'll need to read the source code (please nag one of the yarp developers to add documentation for your device). |
Reimplemented from yarp::dev::DeviceDriver.
Definition at line 216 of file PortAudioPlayerDeviceDriver.cpp.
|
delete |
|
delete |
|
overridevirtual |
Render a sound using a device (i.e.
send it to the speakers).
sound | the sound to be rendered |
Implements yarp::dev::IAudioRender.
Definition at line 355 of file PortAudioPlayerDeviceDriver.cpp.
|
overridevirtual |
Implements yarp::dev::IAudioRender.
Definition at line 433 of file PortAudioPlayerDeviceDriver.cpp.
|
overridevirtual |
Start the playback.
Implements yarp::dev::IAudioRender.
Definition at line 440 of file PortAudioPlayerDeviceDriver.cpp.
|
overridevirtual |
Stop the playback.
Implements yarp::dev::IAudioRender.
Definition at line 447 of file PortAudioPlayerDeviceDriver.cpp.
|
protected |
Definition at line 126 of file PortAudioPlayerDeviceDriver.h.
|
protected |
Definition at line 124 of file PortAudioPlayerDeviceDriver.h.
enum { ... } PortAudioPlayerDeviceDriver::renderMode |