Bugfix - SampleTrack -> Play: Fix sample track not being played in the

right place when it not played from the begining.

That has created a difference between the ticks and the metronome and
the sample track.

The cause of the problem was that the calculation of the frame to play
was wrong: we had calculated `framesPerTick` according to the current
engine's sample rate instead of the SampleBuffer's sample rate.
This commit is contained in:
Shmuel H
2017-12-16 11:47:08 +02:00
parent 6d27f90271
commit 665e50395c
3 changed files with 16 additions and 3 deletions

View File

@@ -31,6 +31,7 @@
#include "export.h"
#include "lmms_basics.h"
class BBTrackContainer;
class DummyTrackContainer;
@@ -100,6 +101,9 @@ public:
{
return s_framesPerTick;
}
static float framesPerTick(sample_rate_t sample_rate);
static void updateFramesPerTick();
static inline LmmsCore * inst()