diff options
Diffstat (limited to 'apps/codecs/wavpack.c')
-rw-r--r-- | apps/codecs/wavpack.c | 21 |
1 files changed, 2 insertions, 19 deletions
diff --git a/apps/codecs/wavpack.c b/apps/codecs/wavpack.c index 65280535e6..e2c19c82e4 100644 --- a/apps/codecs/wavpack.c +++ b/apps/codecs/wavpack.c | |||
@@ -22,8 +22,6 @@ | |||
22 | 22 | ||
23 | CODEC_HEADER | 23 | CODEC_HEADER |
24 | 24 | ||
25 | static struct codec_api *ci; | ||
26 | |||
27 | #define BUFFER_SIZE 4096 | 25 | #define BUFFER_SIZE 4096 |
28 | 26 | ||
29 | static int32_t temp_buffer [BUFFER_SIZE] IBSS_ATTR; | 27 | static int32_t temp_buffer [BUFFER_SIZE] IBSS_ATTR; |
@@ -35,16 +33,8 @@ static int32_t read_callback (void *buffer, int32_t bytes) | |||
35 | return retval; | 33 | return retval; |
36 | } | 34 | } |
37 | 35 | ||
38 | #ifdef USE_IRAM | ||
39 | extern char iramcopy[]; | ||
40 | extern char iramstart[]; | ||
41 | extern char iramend[]; | ||
42 | extern char iedata[]; | ||
43 | extern char iend[]; | ||
44 | #endif | ||
45 | |||
46 | /* this is the codec entry point */ | 36 | /* this is the codec entry point */ |
47 | enum codec_status codec_start(struct codec_api* api) | 37 | enum codec_status codec_main(void) |
48 | { | 38 | { |
49 | WavpackContext *wpc; | 39 | WavpackContext *wpc; |
50 | char error [80]; | 40 | char error [80]; |
@@ -52,13 +42,6 @@ enum codec_status codec_start(struct codec_api* api) | |||
52 | int retval; | 42 | int retval; |
53 | 43 | ||
54 | /* Generic codec initialisation */ | 44 | /* Generic codec initialisation */ |
55 | ci = api; | ||
56 | |||
57 | #ifdef USE_IRAM | ||
58 | ci->memcpy(iramstart, iramcopy, iramend-iramstart); | ||
59 | ci->memset(iedata, 0, iend - iedata); | ||
60 | #endif | ||
61 | |||
62 | ci->configure(CODEC_SET_FILEBUF_WATERMARK, (int *)(1024*512)); | 45 | ci->configure(CODEC_SET_FILEBUF_WATERMARK, (int *)(1024*512)); |
63 | ci->configure(CODEC_SET_FILEBUF_CHUNKSIZE, (int *)(1024*128)); | 46 | ci->configure(CODEC_SET_FILEBUF_CHUNKSIZE, (int *)(1024*128)); |
64 | 47 | ||
@@ -66,7 +49,7 @@ enum codec_status codec_start(struct codec_api* api) | |||
66 | 49 | ||
67 | next_track: | 50 | next_track: |
68 | 51 | ||
69 | if (codec_init(api)) { | 52 | if (codec_init()) { |
70 | retval = CODEC_ERROR; | 53 | retval = CODEC_ERROR; |
71 | goto exit; | 54 | goto exit; |
72 | } | 55 | } |