7 typedef struct raop_s raop_t
;
9 struct raop_callbacks_s
{
11 void (*audio_init
)(void *cls
, void **session
, int bits
, int channels
, int samplerate
);
12 void (*audio_set_volume
)(void *cls
, void *session
, float volume
);
13 void (*audio_process
)(void *cls
, void *session
, const void *buffer
, int buflen
);
14 void (*audio_flush
)(void *cls
, void *session
);
15 void (*audio_destroy
)(void *cls
, void *session
);
17 typedef struct raop_callbacks_s raop_callbacks_t
;
19 raop_t
*raop_init(raop_callbacks_t
*callbacks
, const char *pemkey
);
20 raop_t
*raop_init_from_keyfile(raop_callbacks_t
*callbacks
, const char *keyfile
);
22 int raop_start(raop_t
*raop
, unsigned short *port
, const char *hwaddr
, int hwaddrlen
);
23 void raop_stop(raop_t
*raop
);
25 void raop_destroy(raop_t
*raop
);