summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2007-03-22 09:40:26 +0000
committerDave Chapman <dave@dchapman.com>2007-03-22 09:40:26 +0000
commit46cf8805b6cbbc9ad0499f58cf661f80362e2533 (patch)
treeea331f1e4fe26b4aa1d5520a0b86645ecb467095 /apps
parent831084842182c076cbf5e8f7bf089029dbab8ae6 (diff)
downloadrockbox-46cf8805b6cbbc9ad0499f58cf661f80362e2533.zip
rockbox-46cf8805b6cbbc9ad0499f58cf661f80362e2533.tar.gz
rockbox-46cf8805b6cbbc9ad0499f58cf661f80362e2533.tar.bz2
rockbox-46cf8805b6cbbc9ad0499f58cf661f80362e2533.tar.xz
Oops, only swcodec targets have pcm_get_bytes_waiting()
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12885 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/plugin.c2
-rw-r--r--apps/plugin.h2
2 files changed, 4 insertions, 0 deletions
diff --git a/apps/plugin.c b/apps/plugin.c
index 82f0113..7a2ce00 100644
--- a/apps/plugin.c
+++ b/apps/plugin.c
@@ -488,7 +488,9 @@ static const struct plugin_api rockbox_api = {
playlist_start,
&global_status,
+#if CONFIG_CODEC == SWCODEC
pcm_get_bytes_waiting,
+#endif
};
int plugin_load(const char* plugin, void* parameter)
diff --git a/apps/plugin.h b/apps/plugin.h
index 087908b..dbe7936 100644
--- a/apps/plugin.h
+++ b/apps/plugin.h
@@ -603,7 +603,9 @@ struct plugin_api {
int (*playlist_start)(int start_index, int offset);
struct system_status *global_status;
+#if CONFIG_CODEC == SWCODEC
size_t (*pcm_get_bytes_waiting)(void);
+#endif
};
/* plugin header */