Rev | Line | |
---|
[0] | 1 | //libroarbasic.h: |
---|
| 2 | |
---|
| 3 | #ifndef _LIBROARBASIC_H_ |
---|
| 4 | #define _LIBROARBASIC_H_ |
---|
| 5 | |
---|
| 6 | #include "libroar.h" |
---|
| 7 | |
---|
| 8 | #define LIBROAR_BUFFER_SMALL 80 |
---|
| 9 | #define LIBROAR_BUFFER_MSGDATA LIBROAR_BUFFER_SMALL |
---|
[8] | 10 | #define _ROAR_MESSAGE_VERSION 0 |
---|
[0] | 11 | |
---|
[27] | 12 | #if ROAR_MAX_CHANNELS > (LIBROAR_BUFFER_SMALL - 10) |
---|
| 13 | #error ROAR_MAX_CHANNELS too large change ROAR_MAX_CHANNELS or LIBROAR_BUFFER_SMALL |
---|
| 14 | #endif |
---|
| 15 | |
---|
[0] | 16 | struct roar_message { |
---|
| 17 | int cmd; |
---|
| 18 | unsigned int stream; |
---|
| 19 | uint32_t pos; |
---|
| 20 | int datalen; |
---|
| 21 | char data[LIBROAR_BUFFER_MSGDATA]; |
---|
| 22 | }; |
---|
| 23 | |
---|
| 24 | struct roar_connection { |
---|
| 25 | int fh; |
---|
| 26 | }; |
---|
| 27 | |
---|
| 28 | |
---|
| 29 | int roar_connect_raw (char * server); |
---|
| 30 | |
---|
| 31 | int roar_connect (struct roar_connection * con, char * server); |
---|
| 32 | int roar_disconnect (struct roar_connection * con); |
---|
| 33 | |
---|
| 34 | int roar_identify (struct roar_connection * con, char * name); |
---|
| 35 | |
---|
| 36 | int roar_send_message (struct roar_connection * con, struct roar_message * mes, char * data); |
---|
| 37 | int roar_recv_message (struct roar_connection * con, struct roar_message * mes, char ** data); |
---|
| 38 | int roar_req (struct roar_connection * con, struct roar_message * mes, char ** data); |
---|
| 39 | |
---|
| 40 | int roar_debug_message_print (struct roar_message * mes); |
---|
| 41 | |
---|
| 42 | int roar_debug_audio_info_print (struct roar_audio_info * info); |
---|
| 43 | |
---|
| 44 | #endif |
---|
| 45 | |
---|
| 46 | //ll |
---|
Note: See
TracBrowser
for help on using the repository browser.