diff options
| author | Tomasz Malesinski <tomal@rockbox.org> | 2006-11-26 18:31:41 +0000 |
|---|---|---|
| committer | Tomasz Malesinski <tomal@rockbox.org> | 2006-11-26 18:31:41 +0000 |
| commit | 80da8b141c4672ca4380d66094976b6342ed5071 (patch) | |
| tree | 631e9edd537ae9983524622a9e1ec82e24957280 /apps/codecs/adx.c | |
| parent | 8ef3c8a342d41c2aa5e5d8370fd4e89d4d8d937e (diff) | |
| download | rockbox-80da8b141c4672ca4380d66094976b6342ed5071.zip rockbox-80da8b141c4672ca4380d66094976b6342ed5071.tar.gz rockbox-80da8b141c4672ca4380d66094976b6342ed5071.tar.bz2 rockbox-80da8b141c4672ca4380d66094976b6342ed5071.tar.xz | |
FS#6357, patch 1: let iramcopy and bss share the same space in codecs and
plugins. Currently, in case of plugins using IRAM bss is cleared twice,
once in the loader, once in PLUGIN_IRAM_INIT. For codecs, bss is cleared only
during codec initialization. Also, removed double variables in codecs
storing a pointer to codec_api.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11606 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/adx.c')
| -rw-r--r-- | apps/codecs/adx.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/apps/codecs/adx.c b/apps/codecs/adx.c index 803600b..608d9f0 100644 --- a/apps/codecs/adx.c +++ b/apps/codecs/adx.c @@ -21,8 +21,6 @@ CODEC_HEADER -struct codec_api *rb; - /* Maximum number of bytes to process in one iteration */ #define WAV_CHUNK_SIZE (1024*2) @@ -38,9 +36,8 @@ struct codec_api *rb; static int16_t samples[WAV_CHUNK_SIZE] IBSS_ATTR; /* this is the codec entry point */ -enum codec_status codec_start(struct codec_api *api) +enum codec_status codec_main(void) { - struct codec_api *ci; int channels; int sampleswritten, i; uint8_t *buf; @@ -56,16 +53,13 @@ enum codec_status codec_start(struct codec_api *api) off_t chanstart, bufoff; /* Generic codec initialisation */ - rb = api; - ci = api; - /* we only render 16 bits */ ci->configure(DSP_SET_SAMPLE_DEPTH, (long *)16); /*ci->configure(CODEC_SET_FILEBUF_CHUNKSIZE, (int *)(1024*256));*/ next_track: DEBUGF("ADX: next_track\n"); - if (codec_init(api)) { + if (codec_init()) { return CODEC_ERROR; } DEBUGF("ADX: after init\n"); |