#include <audio.hpp>
Public Member Functions | |
AudioEventConverter (const std::string &name, const float &frequency, const qi::SessionPtr &session) | |
void | callAll (const std::vector< message_actions::MessageAction > &actions, naoqi_bridge_msgs::AudioBuffer &msg) |
void | registerCallback (const message_actions::MessageAction action, Callback_t cb) |
virtual void | reset () |
~AudioEventConverter () | |
Public Member Functions inherited from naoqi::converter::BaseConverter< AudioEventConverter > | |
BaseConverter (const std::string &name, float frequency, qi::SessionPtr session) | |
float | frequency () const |
std::string | name () const |
virtual | ~BaseConverter () |
Private Types | |
typedef boost::function< void(naoqi_bridge_msgs::AudioBuffer &) > | Callback_t |
Private Attributes | |
std::map< message_actions::MessageAction, Callback_t > | callbacks_ |
naoqi_bridge_msgs::AudioBuffer | msg_ |
Additional Inherited Members | |
Protected Attributes inherited from naoqi::converter::BaseConverter< AudioEventConverter > | |
float | frequency_ |
std::string | name_ |
bool | record_enabled_ |
const robot::Robot & | robot_ |
qi::SessionPtr | session_ |
Definition at line 41 of file converters/audio.hpp.
|
private |
Definition at line 44 of file converters/audio.hpp.
naoqi::converter::AudioEventConverter::AudioEventConverter | ( | const std::string & | name, |
const float & | frequency, | ||
const qi::SessionPtr & | session | ||
) |
Definition at line 33 of file converters/audio.cpp.
naoqi::converter::AudioEventConverter::~AudioEventConverter | ( | ) |
Definition at line 38 of file converters/audio.cpp.
void naoqi::converter::AudioEventConverter::callAll | ( | const std::vector< message_actions::MessageAction > & | actions, |
naoqi_bridge_msgs::AudioBuffer & | msg | ||
) |
Definition at line 50 of file converters/audio.cpp.
void naoqi::converter::AudioEventConverter::registerCallback | ( | const message_actions::MessageAction | action, |
Callback_t | cb | ||
) |
Definition at line 45 of file converters/audio.cpp.
|
virtual |
Definition at line 41 of file converters/audio.cpp.
|
private |
Registered Callbacks
Definition at line 59 of file converters/audio.hpp.
|
private |
Definition at line 60 of file converters/audio.hpp.