6#ifndef YARP_DEV_AUDIOPLAYERWRAPPER_H
7#define YARP_DEV_AUDIOPLAYERWRAPPER_H
56 struct scheduled_sound_type
58 double scheduled_time=0;
72 bool close()
override;
94 std::queue<scheduled_sound_type> m_sound_buffer;
96 bool m_isPlaying =
false;
contains the definition of a Vector type
This class is the parameters parser for class AudioPlayerWrapper.
AudioPlayerWrapper: A Wrapper which receives audio streams from a network port and sends it to device...
bool close() override
Close the DeviceDriver.
~AudioPlayerWrapper() override
AudioPlayerWrapper & operator=(AudioPlayerWrapper &&)=delete
bool threadInit() override
Initialization method.
void run() override
Loop function.
void threadRelease() override
Release method.
AudioPlayerWrapper(const AudioPlayerWrapper &)=delete
AudioPlayerWrapper(AudioPlayerWrapper &&)=delete
void afterStart(bool success) override
Called just after a new thread starts (or fails to start), this is executed by the same thread that c...
bool detach() override
Detach the object (you must have first called attach).
AudioPlayerWrapper & operator=(const AudioPlayerWrapper &)=delete
bool open(yarp::os::Searchable ¶ms) override
Open the DeviceDriver.
bool attach(yarp::dev::PolyDriver *driver) override
Specify which sensor this thread has to read from.
Interface implemented by all device drivers.
Interface for rendering a YARP-format sound and controlling its reproduction ona device.
A container for a device driver.
Helper interface for an object that can wrap/or "attach" to a single other device.
A mini-server for performing network communication in the background.
An interface for reading from a network connection.
An abstraction for a periodic thread.
Interface implemented by all objects that can read themselves from the network, such as Bottle object...
A mini-server for network communication.
A base class for nested structures that can be searched.
An abstraction for a time stamp and/or sequence number.
Class for storing sounds See Audio in YARP for additional documentation on YARP audio.