Rev | Line | |
---|
[47] | 1 | //roartypes.c: |
---|
| 2 | |
---|
| 3 | #include <roaraudio.h> |
---|
| 4 | #include "../roard/include/roard.h" |
---|
| 5 | |
---|
| 6 | int main (void) { |
---|
| 7 | struct { char * name; int len; } types[] = { |
---|
| 8 | { "roar_buffer", sizeof(struct roar_buffer) }, |
---|
| 9 | { "roar_stream", sizeof(struct roar_stream) }, |
---|
| 10 | { "roar_stream_server", sizeof(struct roar_stream_server) }, |
---|
| 11 | { "roar_sample", sizeof(struct roar_sample) }, |
---|
| 12 | { "roar_client", sizeof(struct roar_client) }, |
---|
| 13 | { "roar_connection", sizeof(struct roar_connection) }, |
---|
| 14 | { "roar_audio_info", sizeof(struct roar_audio_info) }, |
---|
[87] | 15 | { "roar_meta", sizeof(struct roar_meta) }, |
---|
[47] | 16 | { NULL, 0 } |
---|
| 17 | }, * c = types - 1; |
---|
| 18 | |
---|
| 19 | while ((++c)->name != NULL) |
---|
| 20 | printf("%-20s = %3i Bytes = %4i Bits\n", c->name, c->len, c->len * 8); |
---|
| 21 | |
---|
| 22 | return 0; |
---|
| 23 | } |
---|
| 24 | |
---|
| 25 | //ll |
---|
Note: See
TracBrowser
for help on using the repository browser.