Debian Codegraph @

examples/example1.c

raw
1 #include <stdio.h>
2 #include "example1orc.h"
3
4 #define N 10
5
6 short a[N];
7 short b[N];
8 short c[N];
9
10 int
11 main (int argc, char *argv[])
12 {
13 int i;
14
15 /* Create some data in the source arrays */
16 for(i=0;i<N;i++){
17 a[i] = 100*i;
18 b[i] = 32000;
19 }
20
21 /* Call a function that uses Orc */
22 audio_add_s16 (c, a, b, N);
23
24 /* Print the results */
25 for(i=0;i<N;i++){
26 printf("%d: %d %d -> %d\n", i, a[i], b[i], c[i]);
27 }
28
29 return 0;
30 }
31