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)
69 PaStreamParameters m_outputParameters;
103 bool close()
override;
void run() override
Main body of the new thread.
bool threadInit() override
Initialization method.
void threadRelease() override
Release method.
bool resetPlaybackAudioBuffer() override
bool getPlaybackAudioBufferCurrentSize(yarp::dev::AudioBufferSize &size) override
bool appendSound(const yarp::sig::Sound &sound)
PortAudioPlayerDeviceDriver(PortAudioPlayerDeviceDriver &&)=delete
PortAudioPlayerDeviceDriver & operator=(PortAudioPlayerDeviceDriver &&)=delete
bool stopPlayback() override
Stop the playback.
enum PortAudioPlayerDeviceDriver::@91 renderMode
PortAudioPlayerDeviceDriver & operator=(const PortAudioPlayerDeviceDriver &)=delete
bool getPlaybackAudioBufferMaxSize(yarp::dev::AudioBufferSize &size) override
PortAudioPlayerDeviceDriver(const PortAudioPlayerDeviceDriver &)=delete
bool renderSound(const yarp::sig::Sound &sound) override
Render a sound using a device (i.e.
~PortAudioPlayerDeviceDriver() override
PortAudioPlayerDeviceDriver()
bool close() override
Close the DeviceDriver.
bool startPlayback() override
Start the playback.
PortAudioPlayerDeviceDriverSettings m_driverConfig
bool immediateSound(const yarp::sig::Sound &sound)
bool open(yarp::os::Searchable &config) override
Open the DeviceDriver.
Interface implemented by all device drivers.
A base class for nested structures that can be searched.
An abstraction for a thread of execution.
Class for storing sounds.