trikRuntime
|
Uses virtual sound sensor to detect angle of sound source. More...
#include <soundSensorInterface.h>
Public Slots | |
virtual void | init (bool showOnDisplay)=0 |
Initializes an ALSA. More... | |
virtual void | detect ()=0 |
Not use. More... | |
virtual void | volume (int volCoeff)=0 |
Sets volume coefficient. More... | |
virtual QVector< int > | read ()=0 |
Returns angle and volume for both channels. More... | |
virtual void | stop ()=0 |
Stops detection until init() will be called again. More... | |
Signals | |
void | stopped () |
Emitted when sensor is stopped successfully. More... | |
Additional Inherited Members | |
Public Types inherited from trikControl::DeviceInterface | |
enum | Status { Status::permanentFailure, Status::temporaryFailure, Status::off, Status::starting, Status::ready, Status::stopping } |
Device status. More... | |
Public Member Functions inherited from trikControl::DeviceInterface | |
DeviceInterface ()=default | |
virtual | ~DeviceInterface ()=default |
virtual Status | status () const =0 |
Returns current status of the device. More... | |
Static Public Member Functions inherited from trikControl::DeviceInterface | |
static Status | combine (const DeviceInterface &underlying, const DeviceInterface::Status &dependent) |
Helper method to return status of a device relying on other device to work. More... | |
Uses virtual sound sensor to detect angle of sound source.
|
pure virtualslot |
Not use.
|
pure virtualslot |
Initializes an ALSA.
showOnDisplay | - true if we want an image from DSP to be drawn on robot display. |
|
pure virtualslot |
Returns angle and volume for both channels.
|
pure virtualslot |
Stops detection until init() will be called again.
|
signal |
Emitted when sensor is stopped successfully.
|
pure virtualslot |
Sets volume coefficient.