summaryrefslogtreecommitdiff
path: root/apps/plugins
diff options
context:
space:
mode:
authorPeter D'Hoye <peter.dhoye@gmail.com>2007-06-24 22:49:59 +0000
committerPeter D'Hoye <peter.dhoye@gmail.com>2007-06-24 22:49:59 +0000
commit3490acbfbd835c3125cb590fa86d39d3df6895f9 (patch)
tree01e642d147302249abe48d505346b9d90f19e5a3 /apps/plugins
parentf783617cbcd407090f55dd71b152366a518d3a3a (diff)
downloadrockbox-3490acbfbd835c3125cb590fa86d39d3df6895f9.tar.gz
rockbox-3490acbfbd835c3125cb590fa86d39d3df6895f9.zip
Fix red rockboy builds on archos. Somebody with more rockboy knowledge might want to check this fix ;)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13707 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins')
-rw-r--r--apps/plugins/rockboy/rbsound.c25
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
10bool doneplay=1; 12bool doneplay=1;
11bool bufnum=0; 13bool 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
87void 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
96void pcm_close(void)
97{
98 memset(&pcm, 0, sizeof pcm);
99}
100
101int pcm_submit(void)
102{
103 pcm.pos =0;
104 return 0;
105}
106
107#endif