diff options
Diffstat (limited to 'apps/plugins/rockboy/nosound.c')
-rw-r--r-- | apps/plugins/rockboy/nosound.c | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/apps/plugins/rockboy/nosound.c b/apps/plugins/rockboy/nosound.c new file mode 100644 index 0000000000..a0c9b17f15 --- /dev/null +++ b/apps/plugins/rockboy/nosound.c | |||
@@ -0,0 +1,43 @@ | |||
1 | |||
2 | |||
3 | |||
4 | #include "rockmacros.h" | ||
5 | #include "defs.h" | ||
6 | #include "pcm.h" | ||
7 | #include "rc.h" | ||
8 | |||
9 | |||
10 | struct pcm pcm; | ||
11 | |||
12 | static byte buf[4096]; | ||
13 | |||
14 | |||
15 | rcvar_t pcm_exports[] = | ||
16 | { | ||
17 | RCV_END | ||
18 | }; | ||
19 | |||
20 | |||
21 | void pcm_init(void) | ||
22 | { | ||
23 | pcm.hz = 11025; | ||
24 | pcm.buf = buf; | ||
25 | pcm.len = sizeof buf; | ||
26 | pcm.pos = 0; | ||
27 | } | ||
28 | |||
29 | void pcm_close(void) | ||
30 | { | ||
31 | memset(&pcm, 0, sizeof pcm); | ||
32 | } | ||
33 | |||
34 | int pcm_submit(void) | ||
35 | { | ||
36 | pcm.pos = 0; | ||
37 | return 0; | ||
38 | } | ||
39 | |||
40 | |||
41 | |||
42 | |||
43 | |||