6#ifndef PortAudioPlayerDeviceDriverh
7#define PortAudioPlayerDeviceDriverh
40 PaStreamParameters m_outputParameters;
54 bool configureDeviceAndStart()
override;
58 bool close()
override;
This class is the parameters parser for class PortAudioPlayerDeviceDriver.
portaudioPlayer: A device driver for an audio playback device wrapped by PortAudio library.
yarp::dev::ReturnValue setHWGain(double gain) override
Sets the hardware gain of the playback device (if supported by the hardware)
bool threadInit() override
Initialization method.
yarp::dev::ReturnValue stopPlayback() override
Stop the playback.
PortAudioPlayerDeviceDriver(PortAudioPlayerDeviceDriver &&)=delete
void waitUntilPlaybackStreamIsComplete() override
bool interruptDeviceAndClose() override
PortAudioPlayerDeviceDriver & operator=(PortAudioPlayerDeviceDriver &&)=delete
void run() override
Main body of the new thread.
yarp::dev::ReturnValue startPlayback() override
Start the playback.
PortAudioPlayerDeviceDriver(const PortAudioPlayerDeviceDriver &)=delete
PortAudioPlayerDeviceDriver & operator=(const PortAudioPlayerDeviceDriver &)=delete
~PortAudioPlayerDeviceDriver() override
PortAudioPlayerDeviceDriver()
bool close() override
Close the DeviceDriver.
bool open(yarp::os::Searchable &config) override
Open the DeviceDriver.
void threadRelease() override
Release method.
AudioPlayerDeviceBase : a base class for all audio player devices
Interface implemented by all device drivers.
A base class for nested structures that can be searched.
An abstraction for a thread of execution.