diff options
Diffstat (limited to 'apps/plugins/rockboy/rbsound.c')
-rw-r--r-- | apps/plugins/rockboy/rbsound.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/apps/plugins/rockboy/rbsound.c b/apps/plugins/rockboy/rbsound.c index 163c39aa66..fe2c27af67 100644 --- a/apps/plugins/rockboy/rbsound.c +++ b/apps/plugins/rockboy/rbsound.c | |||
@@ -7,6 +7,8 @@ struct pcm pcm IBSS_ATTR; | |||
7 | #define N_BUFS 2 | 7 | #define N_BUFS 2 |
8 | #define BUF_SIZE 2048 | 8 | #define BUF_SIZE 2048 |
9 | 9 | ||
10 | #if CONFIG_CODEC == SWCODEC | ||
11 | |||
10 | bool doneplay=1; | 12 | bool doneplay=1; |
11 | bool bufnum=0; | 13 | bool bufnum=0; |
12 | 14 | ||
@@ -80,3 +82,26 @@ int pcm_submit(void) | |||
80 | return 1; | 82 | return 1; |
81 | } | 83 | } |
82 | 84 | ||
85 | #else | ||
86 | |||
87 | void pcm_init(void) | ||
88 | { | ||
89 | pcm.hz = 44100; | ||
90 | pcm.stereo = 1; | ||
91 | pcm.buf = NULL; | ||
92 | pcm.len = 0; | ||
93 | pcm.pos = 0; | ||
94 | } | ||
95 | |||
96 | void pcm_close(void) | ||
97 | { | ||
98 | memset(&pcm, 0, sizeof pcm); | ||
99 | } | ||
100 | |||
101 | int pcm_submit(void) | ||
102 | { | ||
103 | pcm.pos =0; | ||
104 | return 0; | ||
105 | } | ||
106 | |||
107 | #endif | ||