Fix kVstTransportChanged flag usage in VST sync
Changed according to feedback from AudioBlast. The flag used to be set most of the time, now it is only set when playback starts/stops, looping is toggled, or playback jumps around.
This commit is contained in:
@@ -87,10 +87,19 @@ public:
|
||||
{
|
||||
return m_currentFrame;
|
||||
}
|
||||
inline void setJumped( const bool jumped )
|
||||
{
|
||||
m_jumped = jumped;
|
||||
}
|
||||
inline bool jumped() const
|
||||
{
|
||||
return m_jumped;
|
||||
}
|
||||
TimeLineWidget * m_timeLine;
|
||||
|
||||
private:
|
||||
float m_currentFrame;
|
||||
bool m_jumped;
|
||||
|
||||
} ;
|
||||
|
||||
|
||||
@@ -61,6 +61,11 @@ public:
|
||||
m_syncData->isCycle = false;
|
||||
}
|
||||
|
||||
void setPlaybackJumped( bool jumped )
|
||||
{
|
||||
m_syncData->m_playbackJumped = jumped;
|
||||
}
|
||||
|
||||
void update();
|
||||
|
||||
|
||||
@@ -79,6 +84,7 @@ private:
|
||||
bool hasSHM;
|
||||
float cycleStart;
|
||||
float cycleEnd;
|
||||
bool m_playbackJumped;
|
||||
int m_bufferSize;
|
||||
int m_sampleRate;
|
||||
int m_bpm;
|
||||
|
||||
@@ -49,6 +49,7 @@ struct VstSyncData
|
||||
bool hasSHM;
|
||||
float cycleStart;
|
||||
float cycleEnd;
|
||||
bool m_playbackJumped;
|
||||
int m_bufferSize;
|
||||
int m_sampleRate;
|
||||
int m_bpm;
|
||||
|
||||
Reference in New Issue
Block a user