2 * Copyright (C) 2011-2012 Juho Vähä-Herttua
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
18 /* For raop_callbacks_t */
22 #define RAOP_AESKEY_LEN 16
23 #define RAOP_AESIV_LEN 16
24 #define RAOP_PACKET_LEN 32768
26 typedef struct raop_rtp_s raop_rtp_t
;
28 raop_rtp_t
*raop_rtp_init(logger_t
*logger
, raop_callbacks_t
*callbacks
, const char *remote
,
29 const char *fmtp
, const unsigned char *aeskey
, const unsigned char *aesiv
);
30 void raop_rtp_start(raop_rtp_t
*raop_rtp
, int use_udp
, unsigned short control_rport
, unsigned short timing_rport
,
31 unsigned short *control_lport
, unsigned short *timing_lport
, unsigned short *data_lport
);
32 void raop_rtp_set_volume(raop_rtp_t
*raop_rtp
, float volume
);
33 void raop_rtp_flush(raop_rtp_t
*raop_rtp
, int next_seq
);
34 void raop_rtp_stop(raop_rtp_t
*raop_rtp
);
35 void raop_rtp_destroy(raop_rtp_t
*raop_rtp
);