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