summaryrefslogtreecommitdiff
path: root/apps/codecs/Tremor/synthesis.c
diff options
context:
space:
mode:
authorPedro Vasconcelos <pbv@rockbox.org>2005-06-08 13:09:30 +0000
committerPedro Vasconcelos <pbv@rockbox.org>2005-06-08 13:09:30 +0000
commit0a3f8e0924aff1da89cd8e2d594fe76474da8524 (patch)
tree323f33057877419d80609b4748a0c38b7632e940 /apps/codecs/Tremor/synthesis.c
parentead61c1d18281b025696d8851763d9d8f13997e0 (diff)
Vorbis opts: keep floor1 lookup table in IRAM.
Slightly faster 16-bit clipping function. Misc: changed tabs for spaces to conform with Rockbox coding standards. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6608 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/Tremor/synthesis.c')
-rw-r--r--apps/codecs/Tremor/synthesis.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/codecs/Tremor/synthesis.c b/apps/codecs/Tremor/synthesis.c
index 35c09f8ddb..db178e7e9f 100644
--- a/apps/codecs/Tremor/synthesis.c
+++ b/apps/codecs/Tremor/synthesis.c
@@ -26,8 +26,8 @@
/* IRAM buffer keep the block pcm data; only for windows size upto 2048
- for space restrictions. No real compromise, larger window sizes
- are only used for very low quality settings (q<0?) */
+ for space restrictions.
+ libVorbis 1.1 Oggenc doesn't use larger windows anyway. */
/* max 2 channels on the ihp-1xx (stereo), 2048 samples (2*2048*4=16Kb) */
#define IRAM_PCM_END 2048
#define CHANNELS 2
@@ -80,12 +80,12 @@ int vorbis_synthesis(vorbis_block *vb,ogg_packet *op,int decodep){
/* use statically allocated iram buffer */
vb->pcm = ipcm_vect;
for(i=0; i<CHANNELS; i++)
- vb->pcm[i] = &ipcm_buff[i*IRAM_PCM_END];
+ vb->pcm[i] = &ipcm_buff[i*IRAM_PCM_END];
} else {
/* dynamic allocation (slower) */
vb->pcm=(ogg_int32_t **)_vorbis_block_alloc(vb,sizeof(*vb->pcm)*vi->channels);
for(i=0;i<vi->channels;i++)
- vb->pcm[i]=(ogg_int32_t *)_vorbis_block_alloc(vb,vb->pcmend*sizeof(*vb->pcm[i]));
+ vb->pcm[i]=(ogg_int32_t *)_vorbis_block_alloc(vb,vb->pcmend*sizeof(*vb->pcm[i]));
}
/* unpack_header enforces range checking */