From 967505a46947bbeec66e7bcdb3d5d602c5c536ef Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Wed, 1 Aug 2018 04:07:46 +1000 Subject: [PATCH] now decodes at far, far slower than realtime --- src/Client/Audio.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Client/Audio.c b/src/Client/Audio.c index bf8b96eea..581b40abd 100644 --- a/src/Client/Audio.c +++ b/src/Client/Audio.c @@ -302,7 +302,7 @@ static UInt32 Codebook_DecodeScalar(struct VorbisState* ctx, struct Codebook* c) if (codeword != c->Codewords[i]) continue; UInt32 value = c->Values[i]; - Platform_Log2("read value %i of len %i", &value, &depth); + //Platform_Log2("read value %i of len %i", &value, &depth); return value; } } @@ -1118,8 +1118,7 @@ Int32 Vorbis_OutputFrame(struct VorbisState* ctx, Int16* data) { combined[ch][j] += ctx->PrevOutput[ch][i]; } } - - j = (ctx->PrevBlockSize * 3 / 4) - (ctx->CurBlockSize / 4); + j = ctx->PrevBlockSize / 4; for (i = 0; i < ctx->CurBlockSize / 4; i++, j++) { for (ch = 0; ch < ctx->Channels; ch++) { combined[ch][j] += ctx->CurOutput[ch][i];