aboutsummaryrefslogtreecommitdiffstats
path: root/Tremolo
diff options
context:
space:
mode:
authorGloria Wang <gwang@google.com>2010-02-12 16:28:30 -0800
committerGloria Wang <gwang@google.com>2010-02-12 16:28:30 -0800
commitd75baf2eee5ddd155009e7f0a79b175ae6026762 (patch)
tree646f0315c6d6306bec0cf3371391e2b8ef12a97e /Tremolo
parent7913073ddf11ca3dd7b0439998e1b17d443bb0ba (diff)
downloadexternal_tremolo-d75baf2eee5ddd155009e7f0a79b175ae6026762.zip
external_tremolo-d75baf2eee5ddd155009e7f0a79b175ae6026762.tar.gz
external_tremolo-d75baf2eee5ddd155009e7f0a79b175ae6026762.tar.bz2
Replace Tremor with Tremolo (an ARM optimised version of the Tremor library for doing Ogg Vorbis decompression)
Diffstat (limited to 'Tremolo')
-rw-r--r--Tremolo/codebook.c2
-rw-r--r--Tremolo/vorbisfile.c8
2 files changed, 5 insertions, 5 deletions
diff --git a/Tremolo/codebook.c b/Tremolo/codebook.c
index 5f46594..0a9c104 100644
--- a/Tremolo/codebook.c
+++ b/Tremolo/codebook.c
@@ -679,7 +679,7 @@ static inline ogg_uint32_t decode_packed_entry_number(codebook *book,
}
case 4:
{
- Output("32/32");
+ //Output("32/32");
for(i=0;i<read;i++){
chase=((ogg_uint32_t *)(book->dec_table))[chase*2+((lok>>i)&1)];
if(chase&0x80000000UL)break;
diff --git a/Tremolo/vorbisfile.c b/Tremolo/vorbisfile.c
index 7b6ce47..7ed3012 100644
--- a/Tremolo/vorbisfile.c
+++ b/Tremolo/vorbisfile.c
@@ -18,7 +18,7 @@
#include <stdlib.h>
#include <stdio.h>
-//#include <errno.h>
+//#include <gerrno.h>
#include <string.h>
#include <math.h>
@@ -28,7 +28,7 @@
#include "os.h"
#include "misc.h"
-int errno;
+int gerrno;
#define NOTOPEN 0
#define PARTOPEN 1
@@ -69,12 +69,12 @@ int errno;
/* read a little more data from the file/pipe into the ogg_sync framer */
static long _get_data(OggVorbis_File *vf){
- errno=0;
+ gerrno=0;
if(vf->datasource){
unsigned char *buffer=ogg_sync_bufferin(vf->oy,CHUNKSIZE);
long bytes=(vf->callbacks.read_func)(buffer,1,CHUNKSIZE,vf->datasource);
if(bytes>0)ogg_sync_wrote(vf->oy,bytes);
- if(bytes==0 && errno)return -1;
+ if(bytes==0 && gerrno)return -1;
return bytes;
}else
return 0;