now decodes at far, far slower than realtime

This commit is contained in:
UnknownShadow200 2018-08-01 04:07:46 +10:00
parent c0a8e0a132
commit 967505a469

View File

@ -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];