2
0

rtp.h 774 B

1234567891011121314151617181920212223
  1. #ifndef _HAIRTUNES_H_
  2. #define _HAIRTUNES_H_
  3. #include "raop_sink.h"
  4. #include "util.h"
  5. typedef struct {
  6. unsigned short cport, tport, aport;
  7. struct rtp_s *ctx;
  8. } rtp_resp_t;
  9. rtp_resp_t rtp_init(struct in_addr host, int latency,
  10. char *aeskey, char *aesiv, char *fmtpstr,
  11. short unsigned pCtrlPort, short unsigned pTimingPort,
  12. uint8_t *buffer, size_t size,
  13. raop_cmd_cb_t cmd_cb, raop_data_cb_t data_cb);
  14. void rtp_end(struct rtp_s *ctx);
  15. bool rtp_flush(struct rtp_s *ctx, unsigned short seqno, unsigned rtptime, bool exit_locked);
  16. void rtp_flush_release(struct rtp_s *ctx);
  17. void rtp_record(struct rtp_s *ctx, unsigned short seqno, unsigned rtptime);
  18. void rtp_metadata(struct rtp_s *ctx, struct metadata_s *metadata);
  19. #endif