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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user