diff options
author | Brandon Low <lostlogic@rockbox.org> | 2006-02-03 00:12:11 +0000 |
---|---|---|
committer | Brandon Low <lostlogic@rockbox.org> | 2006-02-03 00:12:11 +0000 |
commit | d2e75bf02d1ad91fca0e283e8c71b1091ec85a80 (patch) | |
tree | 49e59cc25f26b9bd9c97bcb37adfe05204b70119 /apps/codecs.c | |
parent | 9b0822d76a6f2f2dd1e28cef4a525d0fb752278e (diff) | |
download | rockbox-d2e75bf02d1ad91fca0e283e8c71b1091ec85a80.tar.gz rockbox-d2e75bf02d1ad91fca0e283e8c71b1091ec85a80.zip |
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.c | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/apps/codecs.c b/apps/codecs.c index 6720de909c..380816ba40 100644 --- a/apps/codecs.c +++ b/apps/codecs.c | |||
@@ -50,10 +50,6 @@ | |||
50 | #include "database.h" | 50 | #include "database.h" |
51 | #include "splash.h" | 51 | #include "splash.h" |
52 | 52 | ||
53 | #if (CONFIG_CODEC == SWCODEC) | ||
54 | #include "pcm_playback.h" | ||
55 | #endif | ||
56 | |||
57 | #ifdef SIMULATOR | 53 | #ifdef SIMULATOR |
58 | #if CONFIG_CODEC == SWCODEC | 54 | #if CONFIG_CODEC == SWCODEC |
59 | unsigned char codecbuf[CODEC_SIZE]; | 55 | unsigned char codecbuf[CODEC_SIZE]; |
@@ -162,13 +158,6 @@ struct codec_api ci = { | |||
162 | mp3_play_pause, | 158 | mp3_play_pause, |
163 | mp3_play_stop, | 159 | mp3_play_stop, |
164 | mp3_is_playing, | 160 | mp3_is_playing, |
165 | #if CONFIG_CODEC == SWCODEC | ||
166 | pcm_play_data, | ||
167 | pcm_play_stop, | ||
168 | pcm_set_frequency, | ||
169 | pcm_is_playing, | ||
170 | pcm_play_pause, | ||
171 | #endif | ||
172 | #endif | 161 | #endif |
173 | 162 | ||
174 | /* playback control */ | 163 | /* playback control */ |
@@ -216,8 +205,6 @@ struct codec_api ci = { | |||
216 | battery_level, | 205 | battery_level, |
217 | battery_level_safe, | 206 | battery_level_safe, |
218 | 207 | ||
219 | /* new stuff at the end, sort into place next time | ||
220 | the API gets incompatible */ | ||
221 | #ifdef RB_PROFILE | 208 | #ifdef RB_PROFILE |
222 | profile_thread, | 209 | profile_thread, |
223 | profstop, | 210 | profstop, |
@@ -225,6 +212,9 @@ struct codec_api ci = { | |||
225 | profile_func_exit, | 212 | profile_func_exit, |
226 | #endif | 213 | #endif |
227 | 214 | ||
215 | /* new stuff at the end, sort into place next time | ||
216 | the API gets incompatible */ | ||
217 | |||
228 | }; | 218 | }; |
229 | 219 | ||
230 | int codec_load_ram(char* codecptr, int size, void* ptr2, int bufwrap, | 220 | int codec_load_ram(char* codecptr, int size, void* ptr2, int bufwrap, |