mirror of
https://github.com/DarkStore-3DS/Project_CTR.git
synced 2026-07-04 16:59:02 +00:00
Warning fix. Uninitialized variable shouldn't have happened because it'd mean header was corrupt...?
This commit is contained in:
@@ -814,6 +814,8 @@ int cwav_pcm_setup(cwav_pcmstate* state, cwav_context* ctx, int isloop)
|
|||||||
startoffset = getle32(ctx->infoheader.loopstart);
|
startoffset = getle32(ctx->infoheader.loopstart);
|
||||||
else if (ctx->infoheader.encoding == CWAV_ENCODING_PCM16)
|
else if (ctx->infoheader.encoding == CWAV_ENCODING_PCM16)
|
||||||
startoffset = getle32(ctx->infoheader.loopstart) * 2;
|
startoffset = getle32(ctx->infoheader.loopstart) * 2;
|
||||||
|
else
|
||||||
|
startoffset = 0;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user