6 #ifndef YARP_DEV_AUDIOPLAYERWRAPPER_H
7 #define YARP_DEV_AUDIOPLAYERWRAPPER_H
60 struct scheduled_sound_type
62 double scheduled_time=0;
76 bool close()
override;
94 std::string m_rpcPortName;
96 std::string m_audioInPortName;
98 std::string m_statusPortName;
105 std::queue<scheduled_sound_type> m_sound_buffer;
107 double m_buffer_delay;
108 bool m_isDeviceOwned =
false;
109 bool m_debug_enabled =
false;
110 bool m_isPlaying =
false;
contains the definition of a Vector type
AudioPlayerWrapper: A Wrapper which receives audio streams from a network port and sends it to device...
bool close() override
Close the DeviceDriver.
~AudioPlayerWrapper() override
void attach(yarp::dev::IAudioRender *irend)
bool threadInit() override
Initialization method.
void run() override
Loop function.
bool attachAll(const yarp::dev::PolyDriverList &p) override
Specify which sensor this thread has to read from.
void threadRelease() override
Release method.
AudioPlayerWrapper(const AudioPlayerWrapper &)=delete
bool detachAll() override
Detach the object (you must have first called attach).
AudioPlayerWrapper & operator=(AudioPlayerWrapper &&)=delete
AudioPlayerWrapper & operator=(const AudioPlayerWrapper &)=delete
AudioPlayerWrapper(AudioPlayerWrapper &&)=delete
bool open(yarp::os::Searchable ¶ms) override
Open the DeviceDriver.
Interface implemented by all device drivers.
Interface for an object that can wrap/attach to to another.
A container for a device driver.
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.