source: roaraudio/libroarpulse/libroarpulseinfo.c @ 401:ceb08fdbc80c

Last change on this file since 401:ceb08fdbc80c was 401:ceb08fdbc80c, checked in by phi, 16 years ago

added libroarpulsinfo

File size: 387 bytes
Line 
1//*.c:
2
3#include <libroarpulse/libroarpulse.h>
4
5int main (void) {
6 struct { char * name; int len; } types[] = {
7  { "pa_simple",      sizeof(pa_simple)      },
8  { "pa_sample_spec", sizeof(pa_sample_spec) },
9  { NULL, 0 }
10 }, * c = types - 1;
11
12 printf("Types:\n");
13 while ((++c)->name != NULL)
14  printf("%-20s = %3i Bytes = %4i Bits\n", c->name, c->len, c->len * 8);
15
16 return 0;
17}
18
19//ll
Note: See TracBrowser for help on using the repository browser.