AirPlay progress with synchro

This commit is contained in:
philippe44
2019-08-18 17:38:48 -07:00
parent 0f6e240cc6
commit 876720f9e2
8 changed files with 108 additions and 216 deletions

View File

@@ -1,6 +1,7 @@
#ifndef _HAIRTUNES_H_
#define _HAIRTUNES_H_
#include "raop_sink.h"
#include "util.h"
typedef struct {
@@ -8,11 +9,10 @@ typedef struct {
struct rtp_s *ctx;
} rtp_resp_t;
typedef void (*rtp_data_cb_t)(const u8_t *data, size_t len);
rtp_resp_t rtp_init(struct in_addr host, bool sync, bool drift, bool range, int latency,
rtp_resp_t rtp_init(struct in_addr host, int latency,
char *aeskey, char *aesiv, char *fmtpstr,
short unsigned pCtrlPort, short unsigned pTimingPort, rtp_data_cb_t data_cb);
short unsigned pCtrlPort, short unsigned pTimingPort,
raop_cmd_cb_t cmd_cb, raop_data_cb_t data_cb);
void rtp_end(struct rtp_s *ctx);
bool rtp_flush(struct rtp_s *ctx, unsigned short seqno, unsigned rtptime);
void rtp_record(struct rtp_s *ctx, unsigned short seqno, unsigned rtptime);