6#ifndef YARP_DEV_AUDIORECORDER_NWS_YARP_H
7#define YARP_DEV_AUDIORECORDER_NWS_YARP_H
56 std::unique_ptr<AudioRecorderStatusThread> m_statusThread;
57 std::unique_ptr<AudioRecorderDataThread> m_dataThread;
58 const bool m_debug_enabled =
false;
59 std::list <yarp::sig::Sound> m_listofsnds;
62 double m_debug_last_time=0;
81 bool close()
override;
void threadRelease() override
Release method.
void run() override
Loop function.
bool sendSound(yarp::sig::Sound &s)
bool threadInit() override
Initialization method.
AudioRecorderDataThread(AudioRecorder_nws_yarp *mi)
AudioRecorder_nws_yarp * m_ARW
void threadRelease() override
Release method.
bool threadInit() override
Initialization method.
void run() override
Loop function.
AudioRecorderStatusThread(AudioRecorder_nws_yarp *mi)
AudioRecorder_nws_yarp * m_ARW
This class is the parameters parser for class AudioRecorder_nws_yarp.
AudioRecorder_nws_yarp: A Wrapper which streams audio over the network, after grabbing it from a devi...
~AudioRecorder_nws_yarp() override
bool close() override
Close the DeviceDriver.
bool detach() override
Detach the object (you must have first called attach).
AudioRecorder_nws_yarp & operator=(AudioRecorder_nws_yarp &&)=delete
bool attach(yarp::dev::PolyDriver *driver) override
Attach to another object.
AudioRecorder_nws_yarp()
Constructor.
AudioRecorder_nws_yarp(const AudioRecorder_nws_yarp &)=delete
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
AudioRecorder_nws_yarp & operator=(const AudioRecorder_nws_yarp &)=delete
bool open(yarp::os::Searchable &config) override
Open the DeviceDriver.
AudioRecorder_nws_yarp(AudioRecorder_nws_yarp &&)=delete
Interface implemented by all device drivers.
Read a YARP-format sound block from a device.
A container for a device driver.
Helper interface for an object that can wrap/or "attach" to a single other device.
An interface for reading from a network connection.
An abstraction for a periodic thread.
PeriodicThread(double period, ShouldUseSystemClock useSystemClock=ShouldUseSystemClock::No, PeriodicThreadClock clockAccuracy=PeriodicThreadClock::Relative)
Constructor.
Interface implemented by all objects that can read themselves from the network, such as Bottle object...
A mini-server for network communication.
A class for storing options and configuration information.
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.