1
0
Fork 0
forked from len0rd/rockbox

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:
Thom Johansen 2005-10-27 11:32:02 +00:00
parent c2628f3af9
commit e6021381ef
4 changed files with 8 additions and 8 deletions

View file

@ -33,7 +33,7 @@ unsigned long samplesdone;
unsigned long frequency;
/* used outside liba52 */
static uint8_t buf[3840] IDATA_ATTR;
static uint8_t buf[3840] IBSS_ATTR;
void output_audio(sample_t *samples)
{

View file

@ -21,9 +21,9 @@
#include <codecs/libmad/mad.h>
#include <inttypes.h>
struct mad_stream stream IDATA_ATTR;
struct mad_frame frame IDATA_ATTR;
struct mad_synth synth IDATA_ATTR;
struct mad_stream stream IBSS_ATTR;
struct mad_frame frame IBSS_ATTR;
struct mad_synth synth IBSS_ATTR;
/* The following function is used inside libmad - let's hope it's never
called.
@ -34,8 +34,8 @@ void abort(void) {
#define INPUT_CHUNK_SIZE 8192
mad_fixed_t mad_frame_overlap[2][32][18] IDATA_ATTR;
unsigned char mad_main_data[MAD_BUFFER_MDLEN] IDATA_ATTR;
mad_fixed_t mad_frame_overlap[2][32][18] IBSS_ATTR;
unsigned char mad_main_data[MAD_BUFFER_MDLEN] IBSS_ATTR;
/* TODO: what latency does layer 1 have? */
int mpeg_latency[3] = { 0, 481, 529 };

View file

@ -62,7 +62,7 @@ bool canseek_impl(void *data)
}
/* 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
extern char iramcopy[];

View file

@ -27,7 +27,7 @@ static struct codec_api *ci;
#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)
{