|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
19 #ifndef YARP_DEV_AUDIOPLAYERWRAPPER_H
20 #define YARP_DEV_AUDIOPLAYERWRAPPER_H
71 struct scheduled_sound_type
73 double scheduled_time;
87 bool close()
override;
105 std::string m_rpcPortName;
107 std::string m_audioInPortName;
109 std::string m_statusPortName;
116 std::queue<scheduled_sound_type> m_sound_buffer;
118 double m_buffer_delay;
119 bool m_isDeviceOwned;
120 bool m_debug_enabled;
121 bool m_isPlaying =
false;
128 #endif // YARP_DEV_AUDIOPLAYERWRAPPER_H
void attach(yarp::dev::IAudioRender *irend)
AudioPlayerWrapper(AudioPlayerWrapper &&)=delete
A base class for nested structures that can be searched.
contains the definition of a Vector type
void run() override
Loop function.
bool attachAll(const yarp::dev::PolyDriverList &p) override
Specify which sensor this thread has to read from.
~AudioPlayerWrapper() override
Interface implemented by all device drivers.
bool threadInit() override
Initialization method.
AudioPlayerWrapper: A Wrapper which receives audio streams from a network port and sends it to device...
A mini-server for network communication.
AudioPlayerWrapper(const AudioPlayerWrapper &)=delete
Interface implemented by all objects that can read themselves from the network, such as Bottle object...
bool close() override
Close the DeviceDriver.
A container for a device driver.
AudioPlayerWrapper & operator=(const AudioPlayerWrapper &)=delete
AudioPlayerWrapper & operator=(AudioPlayerWrapper &&)=delete
bool open(yarp::os::Searchable ¶ms) override
Open the DeviceDriver.
An abstraction for a periodic thread.
An interface for reading from a network connection.
An abstraction for a time stamp and/or sequence number.
Class for storing sounds.
void threadRelease() override
Release method.
Interface for an object that can wrap/attach to to another.
bool detachAll() override
Detach the object (you must have first called attach).