From 41cea75095e6dcd17cff2f57c07553c0ec2a298e Mon Sep 17 00:00:00 2001 From: Magnus Holmgren Date: Wed, 28 Dec 2005 20:42:24 +0000 Subject: Vorbis optimizations from Brandon Low (part of patch 1387611). Reduces cpu boost ratio on a test track by about 6 percentage points. Also fixes broken simulator playback caused by my previous Tremor commit. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8291 a1c6a512-1295-4272-9138-f99709370657 --- apps/codecs/Tremor/vorbisfile.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'apps/codecs/Tremor/vorbisfile.c') diff --git a/apps/codecs/Tremor/vorbisfile.c b/apps/codecs/Tremor/vorbisfile.c index 50f827dae7..54e36d29af 100644 --- a/apps/codecs/Tremor/vorbisfile.c +++ b/apps/codecs/Tremor/vorbisfile.c @@ -478,6 +478,9 @@ static void _decode_clear(OggVorbis_File *vf){ 1) got a packet */ +static int _fetch_and_process_packet(OggVorbis_File *vf, + int readp, + int spanp) ICODE_ATTR; static int _fetch_and_process_packet(OggVorbis_File *vf, int readp, int spanp){ @@ -1457,6 +1460,7 @@ ogg_int64_t ov_pcm_tell(OggVorbis_File *vf){ } /* return time offset (milliseconds) of next PCM sample to be read */ +ogg_int64_t ov_time_tell(OggVorbis_File *vf) ICODE_ATTR; ogg_int64_t ov_time_tell(OggVorbis_File *vf){ int link=0; ogg_int64_t pcm_total=0; -- cgit v1.2.3