mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-14 23:52:26 -05:00
IRAM support for a52towav.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6675 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
a9d9ef50bd
commit
c0f9ad61fb
1 changed files with 10 additions and 1 deletions
|
|
@ -149,6 +149,12 @@ void a52_decode_data (file_info_struct* file_info, uint8_t * start, uint8_t * en
|
||||||
|
|
||||||
#define BUFFER_SIZE 4096
|
#define BUFFER_SIZE 4096
|
||||||
|
|
||||||
|
#ifdef USE_IRAM
|
||||||
|
extern char iramcopy[];
|
||||||
|
extern char iramstart[];
|
||||||
|
extern char iramend[];
|
||||||
|
#endif
|
||||||
|
|
||||||
/* this is the plugin entry point */
|
/* this is the plugin entry point */
|
||||||
enum plugin_status plugin_start(struct plugin_api* api, void* file)
|
enum plugin_status plugin_start(struct plugin_api* api, void* file)
|
||||||
{
|
{
|
||||||
|
|
@ -159,6 +165,9 @@ enum plugin_status plugin_start(struct plugin_api* api, void* file)
|
||||||
TEST_PLUGIN_API(api);
|
TEST_PLUGIN_API(api);
|
||||||
rb = api;
|
rb = api;
|
||||||
|
|
||||||
|
#ifdef USE_IRAM
|
||||||
|
rb->memcpy(iramstart, iramcopy, iramend-iramstart);
|
||||||
|
#endif
|
||||||
|
|
||||||
/* This function sets up the buffers and reads the file into RAM */
|
/* This function sets up the buffers and reads the file into RAM */
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue