18 #ifndef AUDIO_EVENT_CONVERTER_HPP
19 #define AUDIO_EVENT_CONVERTER_HPP
30 #include <naoqi_bridge_msgs/AudioBuffer.h>
35 #include <qi/anymodule.hpp>
44 typedef boost::function<void(naoqi_bridge_msgs::AudioBuffer&) >
Callback_t;
55 void callAll(
const std::vector<message_actions::MessageAction>& actions, naoqi_bridge_msgs::AudioBuffer& msg);
59 std::map<message_actions::MessageAction, Callback_t>
callbacks_;
60 naoqi_bridge_msgs::AudioBuffer
msg_;
67 #endif // AUDIO_CONVERTER_HPP
std::string name() const
Definition: converter_base.hpp:54
float frequency() const
Definition: converter_base.hpp:59
boost::function< void(naoqi_bridge_msgs::AudioBuffer &) > Callback_t
Definition: audio.hpp:44
MessageAction
Definition: message_actions.h:9
std::map< message_actions::MessageAction, Callback_t > callbacks_
Definition: audio.hpp:59
naoqi_bridge_msgs::AudioBuffer msg_
Definition: audio.hpp:60
~AudioEventConverter()
Definition: audio.cpp:38
Definition: converter_base.hpp:40
AudioEventConverter(const std::string &name, const float &frequency, const qi::SessionPtr &session)
Definition: audio.cpp:33
virtual void reset()
Definition: audio.cpp:41
void registerCallback(const message_actions::MessageAction action, Callback_t cb)
Definition: audio.cpp:45
void callAll(const std::vector< message_actions::MessageAction > &actions, naoqi_bridge_msgs::AudioBuffer &msg)
Definition: audio.cpp:50