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
boost::function< void(naoqi_bridge_msgs::AudioBuffer &) > Callback_t
std::map< message_actions::MessageAction, Callback_t > callbacks_
naoqi_bridge_msgs::AudioBuffer msg_
AudioEventConverter(const std::string &name, const float &frequency, const qi::SessionPtr &session)
void registerCallback(const message_actions::MessageAction action, Callback_t cb)
void callAll(const std::vector< message_actions::MessageAction > &actions, naoqi_bridge_msgs::AudioBuffer &msg)