summaryrefslogtreecommitdiff
path: root/apps/codecs.c
diff options
context:
space:
mode:
authorBrandon Low <lostlogic@rockbox.org>2006-02-03 00:12:11 +0000
committerBrandon Low <lostlogic@rockbox.org>2006-02-03 00:12:11 +0000
commitd2e75bf02d1ad91fca0e283e8c71b1091ec85a80 (patch)
tree49e59cc25f26b9bd9c97bcb37adfe05204b70119 /apps/codecs.c
parent9b0822d76a6f2f2dd1e28cef4a525d0fb752278e (diff)
downloadrockbox-d2e75bf02d1ad91fca0e283e8c71b1091ec85a80.zip
rockbox-d2e75bf02d1ad91fca0e283e8c71b1091ec85a80.tar.gz
rockbox-d2e75bf02d1ad91fca0e283e8c71b1091ec85a80.tar.bz2
rockbox-d2e75bf02d1ad91fca0e283e8c71b1091ec85a80.tar.xz
Remove exported pcm functions. Codecs should never be allowed to access
the pcm directly. Only through the callbacks in playback.c. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8544 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs.c')
-rw-r--r--apps/codecs.c16
1 files changed, 3 insertions, 13 deletions
diff --git a/apps/codecs.c b/apps/codecs.c
index 6720de9..380816b 100644
--- a/apps/codecs.c
+++ b/apps/codecs.c
@@ -50,10 +50,6 @@
#include "database.h"
#include "splash.h"
-#if (CONFIG_CODEC == SWCODEC)
-#include "pcm_playback.h"
-#endif
-
#ifdef SIMULATOR
#if CONFIG_CODEC == SWCODEC
unsigned char codecbuf[CODEC_SIZE];
@@ -162,13 +158,6 @@ struct codec_api ci = {
mp3_play_pause,
mp3_play_stop,
mp3_is_playing,
-#if CONFIG_CODEC == SWCODEC
- pcm_play_data,
- pcm_play_stop,
- pcm_set_frequency,
- pcm_is_playing,
- pcm_play_pause,
-#endif
#endif
/* playback control */
@@ -216,8 +205,6 @@ struct codec_api ci = {
battery_level,
battery_level_safe,
- /* new stuff at the end, sort into place next time
- the API gets incompatible */
#ifdef RB_PROFILE
profile_thread,
profstop,
@@ -225,6 +212,9 @@ struct codec_api ci = {
profile_func_exit,
#endif
+ /* new stuff at the end, sort into place next time
+ the API gets incompatible */
+
};
int codec_load_ram(char* codecptr, int size, void* ptr2, int bufwrap,