43 if (!b) {
return false; }
63bool FakeSpeaker::threadInit()
68void FakeSpeaker::run()
104 std::lock_guard<std::recursive_mutex> lock(
m_mutex);
unsigned short int audio_sample_16t
constexpr double c_DEFAULT_PERIOD
unsigned short int audio_sample_16t
bool parseParams(const yarp::os::Searchable &config) override
Parse the DeviceDriver parameters.
virtual bool setHWGain(double gain) override
Sets the hardware gain of the playback device (if supported by the hardware)
virtual bool interruptDeviceAndClose() override
bool open(yarp::os::Searchable &config) override
Open the DeviceDriver.
virtual bool configureDeviceAndStart() override
bool close() override
Close the DeviceDriver.
std::recursive_mutex m_mutex
yarp::dev::CircularAudioBuffer_16t * m_outputBuffer
bool configurePlayerAudioDevice(yarp::os::Searchable &config, std::string device_name)
yarp::sig::AudioBufferSize size()
A mini-server for performing network communication in the background.
An abstraction for a periodic thread.
bool setPeriod(double period)
Set the (new) period of the thread.
bool start()
Call this to start the thread.
void stop()
Call this to stop the thread, this call blocks until the thread is terminated (and releaseThread() ca...
A base class for nested structures that can be searched.
virtual Bottle & findGroup(const std::string &key) const =0
Gets a list corresponding to a given keyword.
#define yCError(component,...)
#define yCDebug(component,...)
#define YARP_LOG_COMPONENT(name,...)
For streams capable of holding different kinds of content, check what they actually have.
An interface to the operating system, including Port based communication.