summaryrefslogtreecommitdiff
path: root/apps/plugins/rockboy/rbsound.c
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/rockboy/rbsound.c
parentf783617cbcd407090f55dd71b152366a518d3a3a (diff)
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/rockboy/rbsound.c')
-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;
#define N_BUFS 2
#define BUF_SIZE 2048
+#if CONFIG_CODEC == SWCODEC
+
bool doneplay=1;
bool bufnum=0;
@@ -80,3 +82,26 @@ int pcm_submit(void)
return 1;
}
+#else
+
+void pcm_init(void)
+{
+ pcm.hz = 44100;
+ pcm.stereo = 1;
+ pcm.buf = NULL;
+ pcm.len = 0;
+ pcm.pos = 0;
+}
+
+void pcm_close(void)
+{
+ memset(&pcm, 0, sizeof pcm);
+}
+
+int pcm_submit(void)
+{
+ pcm.pos =0;
+ return 0;
+}
+
+#endif