Browse Source

Fix decoder so it ends properly on non-looped files when Repeat One is enabled.

master
parent
commit
211773c714
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      Plugins/vgmstream/vgmstream/VGMDecoder.m

+ 3
- 1
Plugins/vgmstream/vgmstream/VGMDecoder.m View File

@@ -61,7 +61,9 @@
{
BOOL repeatone = IsRepeatOneSet();
if (!repeatone) {
BOOL loopokay = repeatone && stream->loop_flag;
if (!loopokay) {
if (framesRead >= totalFrames) return 0;
else if (framesRead + frames > totalFrames)
frames = (UInt32)(totalFrames - framesRead);


Loading…
Cancel
Save