|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
19 #ifndef PortAudioPlayerDeviceDriverh
20 #define PortAudioPlayerDeviceDriverh
28 #include <portaudio.h>
31 #define DEFAULT_SAMPLE_RATE (44100)
32 #define DEFAULT_NUM_CHANNELS (2)
33 #define DEFAULT_DITHER_FLAG (0)
34 #define DEFAULT_FRAMES_PER_BUFFER (512)
76 PaStreamParameters m_outputParameters;
110 bool close()
override;
PortAudioPlayerDeviceDriverSettings m_driverConfig
A base class for nested structures that can be searched.
PortAudioPlayerDeviceDriver(PortAudioPlayerDeviceDriver &&)=delete
void threadRelease() override
Release method.
Interface implemented by all device drivers.
bool open(yarp::os::Searchable &config) override
Open the DeviceDriver.
bool appendSound(const yarp::sig::Sound &sound)
An abstraction for a thread of execution.
PortAudioPlayerDeviceDriver & operator=(PortAudioPlayerDeviceDriver &&)=delete
enum PortAudioPlayerDeviceDriver::@0 renderMode
portaudioPlayer: Documentation to be added
bool resetPlaybackAudioBuffer() override
~PortAudioPlayerDeviceDriver() override
bool getPlaybackAudioBufferCurrentSize(yarp::dev::AudioBufferSize &size) override
bool immediateSound(const yarp::sig::Sound &sound)
PortAudioPlayerDeviceDriver(const PortAudioPlayerDeviceDriver &)=delete
Class for storing sounds.
bool stopPlayback() override
Stop the playback.
bool startPlayback() override
Start the playback.
bool renderSound(const yarp::sig::Sound &sound) override
Render a sound using a device (i.e.
void run() override
Main body of the new thread.
bool close() override
Close the DeviceDriver.
bool threadInit() override
Initialization method.
PortAudioPlayerDeviceDriver & operator=(const PortAudioPlayerDeviceDriver &)=delete
bool getPlaybackAudioBufferMaxSize(yarp::dev::AudioBufferSize &size) override
PortAudioPlayerDeviceDriver()