ServerSoundGrabber
: Export a microphone device streaming sound samples
More...
#include <ServerSoundGrabber/ServerSoundGrabber.h>
ServerSoundGrabber
: Export a microphone device streaming sound samples
Definition at line 27 of file ServerSoundGrabber.h.
◆ ServerSoundGrabber() [1/3]
ServerSoundGrabber::ServerSoundGrabber |
( |
| ) |
|
◆ ServerSoundGrabber() [2/3]
◆ ServerSoundGrabber() [3/3]
◆ ~ServerSoundGrabber()
ServerSoundGrabber::~ServerSoundGrabber |
( |
| ) |
|
|
override |
◆ close()
bool ServerSoundGrabber::close |
( |
| ) |
|
|
overridevirtual |
◆ open()
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). |
- Parameters
-
- Returns
- true iff the object could be configured.
Reimplemented from yarp::dev::DeviceDriver.
Definition at line 49 of file ServerSoundGrabber.cpp.
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ read()
Read this object from a network connection.
Override this for your particular class.
- Parameters
-
reader | an interface to the network connection for reading |
- Returns
- true iff the object is successfully read
Implements yarp::os::PortReader.
Definition at line 164 of file ServerSoundGrabber.cpp.
◆ run()
void ServerSoundGrabber::run |
( |
| ) |
|
|
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 122 of file ServerSoundGrabber.cpp.
The documentation for this class was generated from the following files: