ServerSoundGrabber: Export a microphone device streaming sound samples
More...
#include <ServerSoundGrabber/ServerSoundGrabber.h>
Inheritance diagram for ServerSoundGrabber:Public Member Functions | |
| ServerSoundGrabber () | |
| ServerSoundGrabber (const ServerSoundGrabber &)=delete | |
| ServerSoundGrabber (ServerSoundGrabber &&)=delete | |
| ServerSoundGrabber & | operator= (const ServerSoundGrabber &)=delete |
| ServerSoundGrabber & | operator= (ServerSoundGrabber &&)=delete |
| ~ServerSoundGrabber () override | |
| bool | open (yarp::os::Searchable &config) override |
| Configure with a set of options. More... | |
| bool | close () override |
| Close the DeviceDriver. More... | |
| void | run () override |
| Main body of the new thread. More... | |
| bool | read (yarp::os::ConnectionReader &connection) override |
| Read this object from a network connection. More... | |
Public Member Functions inherited from yarp::dev::DeviceDriver | |
| DeviceDriver () | |
| DeviceDriver (const DeviceDriver &other)=delete | |
| DeviceDriver (DeviceDriver &&other) noexcept=delete | |
| DeviceDriver & | operator= (const DeviceDriver &other)=delete |
| DeviceDriver & | operator= (DeviceDriver &&other) noexcept=delete |
| ~DeviceDriver () override | |
| bool | open (yarp::os::Searchable &config) override |
| Open the DeviceDriver. More... | |
| bool | close () override |
| Close the DeviceDriver. More... | |
| virtual std::string | id () const |
| Return the id assigned to the PolyDriver. More... | |
| virtual void | setId (const std::string &id) |
| Set the id for this device. More... | |
| template<class T > | |
| bool | view (T *&x) |
| Get an interface to the device driver. More... | |
| virtual DeviceDriver * | getImplementation () |
| Some drivers are bureaucrats, pointing at others. More... | |
Public Member Functions inherited from yarp::os::IConfig | |
| virtual | ~IConfig () |
| Destructor. More... | |
| virtual bool | open (Searchable &config) |
| Initialize the object. More... | |
| virtual bool | close () |
| Shut the object down. More... | |
| virtual bool | configure (Searchable &config) |
| Change online parameters. More... | |
Public Member Functions inherited from yarp::os::PortReader | |
| virtual | ~PortReader () |
| Destructor. More... | |
| virtual bool | read (ConnectionReader &reader)=0 |
| Read this object from a network connection. More... | |
| virtual Type | getReadType () const |
ServerSoundGrabber: Export a microphone device streaming sound samples
Definition at line 24 of file ServerSoundGrabber.h.
| ServerSoundGrabber::ServerSoundGrabber | ( | ) |
Definition at line 22 of file ServerSoundGrabber.cpp.
|
delete |
|
delete |
|
override |
Definition at line 29 of file ServerSoundGrabber.cpp.
|
overridevirtual |
Close the DeviceDriver.
Reimplemented from yarp::dev::DeviceDriver.
Definition at line 103 of file ServerSoundGrabber.cpp.
|
overridevirtual |
Configure with a set of options.
These are:
| subdevice | Common name of device to wrap (e.g. "fakeFrameGrabber"). |
| name | Port name to assign to this server (default /grabber). |
| config | The options to use |
Reimplemented from yarp::dev::DeviceDriver.
Definition at line 46 of file ServerSoundGrabber.cpp.
|
delete |
|
delete |
|
overridevirtual |
Read this object from a network connection.
Override this for your particular class.
| reader | an interface to the network connection for reading |
Implements yarp::os::PortReader.
Definition at line 161 of file ServerSoundGrabber.cpp.
|
overridevirtual |
Main body of the new thread.
Override this method to do what you want. After Thread::start is called, this method will start running in a separate thread. It is important that this method either keeps checking Thread::isStopping to see if it should stop, or you override the Thread::onStop method to interact with it in some way to shut the new thread down. There is no really reliable, portable way to stop a thread cleanly unless that thread cooperates.
Implements yarp::os::Thread.
Definition at line 119 of file ServerSoundGrabber.cpp.