summaryrefslogtreecommitdiffstats
path: root/apps/codecs/Tremor/synthesis.c
diff options
context:
space:
mode:
authorPedro Vasconcelos <pbv@rockbox.org>2005-06-10 22:34:57 +0000
committerPedro Vasconcelos <pbv@rockbox.org>2005-06-10 22:34:57 +0000
commit6b9350b4d355a7598b737c00a2a3c02dd99bb1ec (patch)
tree432e50cfab8b7dc676605f1617424e0cfa0c8c1d /apps/codecs/Tremor/synthesis.c
parentcd1d87c8cf1b16e47e5c862c90a5f700087c2a5b (diff)
downloadrockbox-6b9350b4d355a7598b737c00a2a3c02dd99bb1ec.tar.gz
rockbox-6b9350b4d355a7598b737c00a2a3c02dd99bb1ec.zip
A little improvement on Vorbis block synthesis.
Added myself to the list of contributors. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6664 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/Tremor/synthesis.c')
-rw-r--r--apps/codecs/Tremor/synthesis.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/codecs/Tremor/synthesis.c b/apps/codecs/Tremor/synthesis.c
index db178e7e9f..d01a7aaa64 100644
--- a/apps/codecs/Tremor/synthesis.c
+++ b/apps/codecs/Tremor/synthesis.c
@@ -33,7 +33,7 @@
#define CHANNELS 2
static ogg_int32_t *ipcm_vect[CHANNELS] IDATA_ATTR;
-static ogg_int32_t ipcm_buff[CHANNELS*IRAM_PCM_END] IDATA_ATTR;
+static ogg_int32_t ipcm_buff[CHANNELS*IRAM_PCM_END] IDATA_ATTR LINE_ATTR;
int vorbis_synthesis(vorbis_block *vb,ogg_packet *op,int decodep){
vorbis_dsp_state *vd=vb->vd;
@@ -73,10 +73,10 @@ int vorbis_synthesis(vorbis_block *vb,ogg_packet *op,int decodep){
vb->sequence=op->packetno-3; /* first block is third packet */
vb->eofflag=op->e_o_s;
- if(decodep){
+ if(decodep && vi->channels<=CHANNELS){
/* alloc pcm passback storage */
vb->pcmend=ci->blocksizes[vb->W];
- if (vi->channels <= CHANNELS && vb->pcmend<=IRAM_PCM_END) {
+ if (vb->pcmend<=IRAM_PCM_END) {
/* use statically allocated iram buffer */
vb->pcm = ipcm_vect;
for(i=0; i<CHANNELS; i++)