Browse Source

midifile: make sure to start new files at frame 0

Signed-off-by: falkTX <falktx@falktx.com>
tags/v2.3.0-RC2
falkTX 3 years ago
parent
commit
b5e253e18c
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      source/native-plugins/midi-file.cpp

+ 2
- 0
source/native-plugins/midi-file.cpp View File

@@ -394,6 +394,8 @@ private:

fFileLength = midiFile.getLastTimestamp();
fNeedsAllNotesOff = true;
fInternalTransportFrame = 0;
fLastFrame = 0;
fMaxFrame = static_cast<uint32_t>(fFileLength * sampleRate + 0.5);
}



Loading…
Cancel
Save