4 #if defined (WIN32) && defined(DLL_EXPORT)
5 # define RAOP_API __declspec(dllexport)
14 typedef struct raop_s raop_t
;
16 struct raop_callbacks_s
{
18 void* (*audio_init
)(void *cls
, int bits
, int channels
, int samplerate
);
19 void (*audio_set_volume
)(void *cls
, void *session
, float volume
);
20 void (*audio_process
)(void *cls
, void *session
, const void *buffer
, int buflen
);
21 void (*audio_flush
)(void *cls
, void *session
);
22 void (*audio_destroy
)(void *cls
, void *session
);
24 typedef struct raop_callbacks_s raop_callbacks_t
;
26 RAOP_API raop_t
*raop_init(raop_callbacks_t
*callbacks
, const char *pemkey
);
27 RAOP_API raop_t
*raop_init_from_keyfile(raop_callbacks_t
*callbacks
, const char *keyfile
);
29 RAOP_API
int raop_is_running(raop_t
*raop
);
31 RAOP_API
int raop_start(raop_t
*raop
, unsigned short *port
, const char *hwaddr
, int hwaddrlen
, const char *password
);
32 RAOP_API
void raop_stop(raop_t
*raop
);
34 RAOP_API
void raop_destroy(raop_t
*raop
);