mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-18 09:32:40 -05:00
Introduced usage of IBSS_ATTR and ICONST_ATTR to codec plugins.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7659 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
c2628f3af9
commit
e6021381ef
4 changed files with 8 additions and 8 deletions
|
|
@ -33,7 +33,7 @@ unsigned long samplesdone;
|
||||||
unsigned long frequency;
|
unsigned long frequency;
|
||||||
|
|
||||||
/* used outside liba52 */
|
/* used outside liba52 */
|
||||||
static uint8_t buf[3840] IDATA_ATTR;
|
static uint8_t buf[3840] IBSS_ATTR;
|
||||||
|
|
||||||
void output_audio(sample_t *samples)
|
void output_audio(sample_t *samples)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -21,9 +21,9 @@
|
||||||
#include <codecs/libmad/mad.h>
|
#include <codecs/libmad/mad.h>
|
||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
|
|
||||||
struct mad_stream stream IDATA_ATTR;
|
struct mad_stream stream IBSS_ATTR;
|
||||||
struct mad_frame frame IDATA_ATTR;
|
struct mad_frame frame IBSS_ATTR;
|
||||||
struct mad_synth synth IDATA_ATTR;
|
struct mad_synth synth IBSS_ATTR;
|
||||||
|
|
||||||
/* The following function is used inside libmad - let's hope it's never
|
/* The following function is used inside libmad - let's hope it's never
|
||||||
called.
|
called.
|
||||||
|
|
@ -34,8 +34,8 @@ void abort(void) {
|
||||||
|
|
||||||
#define INPUT_CHUNK_SIZE 8192
|
#define INPUT_CHUNK_SIZE 8192
|
||||||
|
|
||||||
mad_fixed_t mad_frame_overlap[2][32][18] IDATA_ATTR;
|
mad_fixed_t mad_frame_overlap[2][32][18] IBSS_ATTR;
|
||||||
unsigned char mad_main_data[MAD_BUFFER_MDLEN] IDATA_ATTR;
|
unsigned char mad_main_data[MAD_BUFFER_MDLEN] IBSS_ATTR;
|
||||||
/* TODO: what latency does layer 1 have? */
|
/* TODO: what latency does layer 1 have? */
|
||||||
int mpeg_latency[3] = { 0, 481, 529 };
|
int mpeg_latency[3] = { 0, 481, 529 };
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -62,7 +62,7 @@ bool canseek_impl(void *data)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* temporary, we probably have better use for iram than this */
|
/* temporary, we probably have better use for iram than this */
|
||||||
MPC_SAMPLE_FORMAT sample_buffer[MPC_DECODER_BUFFER_LENGTH] IDATA_ATTR;
|
MPC_SAMPLE_FORMAT sample_buffer[MPC_DECODER_BUFFER_LENGTH] IBSS_ATTR;
|
||||||
|
|
||||||
#ifdef USE_IRAM
|
#ifdef USE_IRAM
|
||||||
extern char iramcopy[];
|
extern char iramcopy[];
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ static struct codec_api *ci;
|
||||||
|
|
||||||
#define BUFFER_SIZE 4096
|
#define BUFFER_SIZE 4096
|
||||||
|
|
||||||
static long temp_buffer [BUFFER_SIZE] IDATA_ATTR;
|
static long temp_buffer [BUFFER_SIZE] IBSS_ATTR;
|
||||||
|
|
||||||
static long read_callback (void *buffer, long bytes)
|
static long read_callback (void *buffer, long bytes)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue