23#ifndef AUDIO_COMMON__AUDIO_PLAYER_NODE
24#define AUDIO_COMMON__AUDIO_PLAYER_NODE
28#include <rclcpp/rclcpp.hpp>
30#include "audio_common_msgs/msg/audio_stamped.hpp"
41 rclcpp::Subscription<audio_common_msgs::msg::AudioStamped>::SharedPtr
53 audio_callback(
const audio_common_msgs::msg::AudioStamped::SharedPtr msg);
55 void write_data(
const std::vector<T> &data,
int channels,
int chunk,
56 const std::string &stream_key);
std::unordered_map< std::string, PaStream * > stream_dict_
Definition audio_player_node.hpp:45
rclcpp::Subscription< audio_common_msgs::msg::AudioStamped >::SharedPtr audio_sub_
Definition audio_player_node.hpp:42
int channels_
Definition audio_player_node.hpp:48
AudioPlayerNode()
Definition audio_player_node.cpp:38
void write_data(const std::vector< T > &data, int channels, int chunk, const std::string &stream_key)
Definition audio_player_node.cpp:140
int device_
Definition audio_player_node.hpp:49
~AudioPlayerNode() override
Definition audio_player_node.cpp:65
void audio_callback(const audio_common_msgs::msg::AudioStamped::SharedPtr msg)
Definition audio_player_node.cpp:74
Definition audio_capturer_node.hpp:32