summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/codecs/libtta/ttadec.c28
-rw-r--r--apps/codecs/libtta/ttadec.h2
-rw-r--r--apps/codecs/libtta/ttalib.h2
3 files changed, 16 insertions, 16 deletions
diff --git a/apps/codecs/libtta/ttadec.c b/apps/codecs/libtta/ttadec.c
index dc9f5b905b..2ff2d24da9 100644
--- a/apps/codecs/libtta/ttadec.c
+++ b/apps/codecs/libtta/ttadec.c
@@ -45,31 +45,31 @@
45/******************* static variables and structures *******************/ 45/******************* static variables and structures *******************/
46 46
47static unsigned char isobuffers[ISO_BUFFERS_SIZE + 4] IBSS_ATTR; 47static unsigned char isobuffers[ISO_BUFFERS_SIZE + 4] IBSS_ATTR;
48static unsigned char *iso_buffers_end = isobuffers + ISO_BUFFERS_SIZE; 48static unsigned char * const iso_buffers_end ICONST_ATTR = isobuffers + ISO_BUFFERS_SIZE;
49static unsigned int pcm_buffer_size; 49static unsigned int pcm_buffer_size IBSS_ATTR;
50 50
51static decoder tta[MAX_NCH] IBSS_ATTR; /* decoder state */ 51static decoder tta[MAX_NCH] IBSS_ATTR; /* decoder state */
52/* Rockbox speciffic: cache is defined in get_samples() (non static value) */ 52/* Rockbox speciffic: cache is defined in get_samples() (non static value) */
53/* static int cache[MAX_NCH]; // decoder cache */ 53/* static int cache[MAX_NCH]; // decoder cache */
54 54
55tta_info *ttainfo; /* currently playing file info */ 55tta_info *ttainfo IBSS_ATTR; /* currently playing file info */
56 56
57static unsigned int fframes; /* number of frames in file */ 57static unsigned int fframes IBSS_ATTR; /* number of frames in file */
58static unsigned int framelen; /* the frame length in samples */ 58static unsigned int framelen IBSS_ATTR; /* the frame length in samples */
59static unsigned int lastlen; /* the length of the last frame in samples */ 59static unsigned int lastlen IBSS_ATTR; /* the length of the last frame in samples */
60static unsigned int data_pos; /* currently playing frame index */ 60static unsigned int data_pos IBSS_ATTR; /* currently playing frame index */
61static unsigned int data_cur; /* the playing position in frame */ 61static unsigned int data_cur IBSS_ATTR; /* the playing position in frame */
62 62
63static int maxvalue; /* output data max value */ 63static int maxvalue IBSS_ATTR; /* output data max value */
64 64
65/* Rockbox speciffic: seek_table is static size */ 65/* Rockbox speciffic: seek_table is static size */
66static unsigned int seek_table[MAX_SEEK_TABLE_SIZE]; /* the playing position table */ 66static unsigned int seek_table[MAX_SEEK_TABLE_SIZE]; /* the playing position table */
67static unsigned int st_state; /* seek table status */ 67static unsigned int st_state; /* seek table status */
68 68
69static unsigned int frame_crc32; 69static unsigned int frame_crc32 IBSS_ATTR;
70static unsigned int bit_count; 70static unsigned int bit_count IBSS_ATTR;
71static unsigned int bit_cache; 71static unsigned int bit_cache IBSS_ATTR;
72static unsigned char *bitpos; 72static unsigned char *bitpos IBSS_ATTR;
73 73
74/* Rockbox speciffic: deletes read_id3_tags(). */ 74/* Rockbox speciffic: deletes read_id3_tags(). */
75/* static int read_id3_tags (tta_info *info); */ 75/* static int read_id3_tags (tta_info *info); */
diff --git a/apps/codecs/libtta/ttadec.h b/apps/codecs/libtta/ttadec.h
index 43affd952b..c185e5c858 100644
--- a/apps/codecs/libtta/ttadec.h
+++ b/apps/codecs/libtta/ttadec.h
@@ -142,7 +142,7 @@ static const unsigned int bit_shift[] ICONST_ATTR = {
142 0x80000000, 0x80000000, 0x80000000, 0x80000000 142 0x80000000, 0x80000000, 0x80000000, 0x80000000
143}; 143};
144 144
145static const unsigned int *shift_16 = bit_shift + 4; 145static const unsigned int * const shift_16 ICONST_ATTR = bit_shift + 4;
146 146
147typedef unsigned char byte; 147typedef unsigned char byte;
148 148
diff --git a/apps/codecs/libtta/ttalib.h b/apps/codecs/libtta/ttalib.h
index 861c119cd4..45da71813a 100644
--- a/apps/codecs/libtta/ttalib.h
+++ b/apps/codecs/libtta/ttalib.h
@@ -142,7 +142,7 @@ void player_stop (void); // FUNCTION: destroys memory pools
142 142
143/* Rockbox speciffic: unsigned char -> int32_t */ 143/* Rockbox speciffic: unsigned char -> int32_t */
144int get_samples ( // FUNCTION: decode PCM_BUFFER_LENGTH samples 144int get_samples ( // FUNCTION: decode PCM_BUFFER_LENGTH samples
145 int32_t *buffer); // into the current PCM buffer position 145 int32_t *buffer) ICODE_ATTR; // into the current PCM buffer position
146 146
147/* 147/*
148 * RETURN VALUE 148 * RETURN VALUE