audio_debugger.h 349 B

12345678910111213141516171819202122
  1. #ifndef AUDIO_DEBUGGER_H
  2. #define AUDIO_DEBUGGER_H
  3. #include <vector>
  4. #include <cstdint>
  5. #include <sys/socket.h>
  6. #include <netinet/in.h>
  7. class AudioDebugger {
  8. public:
  9. AudioDebugger();
  10. ~AudioDebugger();
  11. void Feed(const std::vector<int16_t>& data);
  12. private:
  13. int udp_sockfd_ = -1;
  14. struct sockaddr_in udp_server_addr_;
  15. };
  16. #endif