#include <portaudioPlayer/PortAudioPlayerDeviceDriver.h>
Inheritance diagram for PortAudioPlayerDeviceDriver:Definition at line 64 of file 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 (void) 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 (void) |
| 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 | |
| virtual | ~DeviceDriver () |
| 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 (void) |
Protected Attributes | |
| void * | m_system_resource |
| PortAudioPlayerDeviceDriverSettings | m_driverConfig |
| enum PortAudioPlayerDeviceDriver:: { ... } | renderMode |
|
protected |
| Enumerator | |
|---|---|
| RENDER_APPEND | |
| RENDER_IMMEDIATE | |
Definition at line 120 of file PortAudioPlayerDeviceDriver.h.
| PortAudioPlayerDeviceDriver::PortAudioPlayerDeviceDriver | ( | ) |
Definition at line 195 of file PortAudioPlayerDeviceDriver.cpp.
|
delete |
|
delete |
|
override |
Definition at line 205 of file PortAudioPlayerDeviceDriver.cpp.
| bool PortAudioPlayerDeviceDriver::abortSound | ( | void | ) |
Definition at line 318 of file PortAudioPlayerDeviceDriver.cpp.
| bool PortAudioPlayerDeviceDriver::appendSound | ( | const yarp::sig::Sound & | sound | ) |
Definition at line 400 of file PortAudioPlayerDeviceDriver.cpp.
|
overridevirtual |
Close the DeviceDriver.
Reimplemented from yarp::dev::DeviceDriver.
Definition at line 295 of file PortAudioPlayerDeviceDriver.cpp.
|
overridevirtual |
Implements yarp::dev::IAudioRender.
Definition at line 414 of file PortAudioPlayerDeviceDriver.cpp.
|
overridevirtual |
Implements yarp::dev::IAudioRender.
Definition at line 421 of file PortAudioPlayerDeviceDriver.cpp.
|
protected |
Definition at line 282 of file PortAudioPlayerDeviceDriver.cpp.
| bool PortAudioPlayerDeviceDriver::immediateSound | ( | const yarp::sig::Sound & | sound | ) |
Definition at line 334 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 211 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 230 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 350 of file PortAudioPlayerDeviceDriver.cpp.
|
overridevirtual |
Implements yarp::dev::IAudioRender.
Definition at line 428 of file PortAudioPlayerDeviceDriver.cpp.
|
overridevirtual |
Start the playback.
Implements yarp::dev::IAudioRender.
Definition at line 435 of file PortAudioPlayerDeviceDriver.cpp.
|
overridevirtual |
Stop the playback.
Implements yarp::dev::IAudioRender.
Definition at line 442 of file PortAudioPlayerDeviceDriver.cpp.
|
protected |
Definition at line 119 of file PortAudioPlayerDeviceDriver.h.
|
protected |
Definition at line 117 of file PortAudioPlayerDeviceDriver.h.
| enum { ... } PortAudioPlayerDeviceDriver::renderMode |