Commit | Line | Data |
---|---|---|
2340bcd3 JVH |
1 | #ifndef RAOP_RTP_H |
2 | #define RAOP_RTP_H | |
3 | ||
4 | /* For raop_callbacks_t */ | |
5 | #include "raop.h" | |
6 | #include "logger.h" | |
7 | ||
8 | #define RAOP_AESKEY_LEN 16 | |
9 | #define RAOP_AESIV_LEN 16 | |
10 | #define RAOP_PACKET_LEN 32768 | |
11 | ||
12 | typedef struct raop_rtp_s raop_rtp_t; | |
13 | ||
14 | raop_rtp_t *raop_rtp_init(logger_t *logger, raop_callbacks_t *callbacks, const char *fmtp, | |
15 | const unsigned char *aeskey, const unsigned char *aesiv); | |
16 | void raop_rtp_start(raop_rtp_t *raop_rtp, int use_udp, unsigned short control_rport, unsigned short timing_rport, | |
17 | unsigned short *control_lport, unsigned short *timing_lport, unsigned short *data_lport); | |
18 | void raop_rtp_set_volume(raop_rtp_t *raop_rtp, float volume); | |
19 | void raop_rtp_flush(raop_rtp_t *raop_rtp, int next_seq); | |
20 | void raop_rtp_stop(raop_rtp_t *raop_rtp); | |
21 | void raop_rtp_destroy(raop_rtp_t *raop_rtp); | |
22 | ||
23 | #endif |