summaryrefslogtreecommitdiffstats
path: root/apps/pcmbuf.c
diff options
context:
space:
mode:
authorSteve Bavin <pondlife@pondlife.me>2008-03-28 11:24:24 +0000
committerSteve Bavin <pondlife@pondlife.me>2008-03-28 11:24:24 +0000
commitc9df8fd87ba80a3c0d719e76ca68cb829a505b11 (patch)
treecf4493629cd7e960d60f19fa1fc87b2e5b4945b3 /apps/pcmbuf.c
parentf54def9dd59db89a0a7cd304cbcd78d9c6a209ee (diff)
downloadrockbox-c9df8fd87ba80a3c0d719e76ca68cb829a505b11.tar.gz
rockbox-c9df8fd87ba80a3c0d719e76ca68cb829a505b11.tar.bz2
rockbox-c9df8fd87ba80a3c0d719e76ca68cb829a505b11.zip
The const police raid playback.c, should be no change to behaviour.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16860 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/pcmbuf.c')
-rw-r--r--apps/pcmbuf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/pcmbuf.c b/apps/pcmbuf.c
index 8f16c90523..b9587d08dd 100644
--- a/apps/pcmbuf.c
+++ b/apps/pcmbuf.c
@@ -82,7 +82,7 @@ static char *fadebuf IDATA_ATTR;
static char *voicebuf IDATA_ATTR;
static void (*pcmbuf_event_handler)(void) IDATA_ATTR;
-static void (*position_callback)(size_t size) IDATA_ATTR;
+static void (*position_callback)(const size_t size) IDATA_ATTR;
/* Crossfade related state */
static bool crossfade_enabled;
@@ -188,7 +188,7 @@ static void pcmbuf_callback(unsigned char** start, size_t* size)
}
}
-void pcmbuf_set_position_callback(void (*callback)(size_t size))
+void pcmbuf_set_position_callback(void (*callback)(const size_t size))
{
position_callback = callback;
}
@@ -938,7 +938,7 @@ void pcmbuf_write_complete(int count)
}
#if 0
-bool pcmbuf_insert_buffer(char *buf, int count)
+bool pcmbuf_insert_buffer(char *buf, const int count)
{
size_t length = (size_t)(unsigned int)count << 2;