Skip to content

Commit 3aeacca

Browse files
DomClarkPhysSong
authored andcommitted
Fix layout of VstSyncData struct
Ensure member of type double is 8-byte aligned for consistent layout between 32- and 64-bit Linux builds.
1 parent 205b575 commit 3aeacca

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

include/VstSyncController.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,10 @@ private slots:
7676
private:
7777
struct VstSyncData
7878
{
79-
bool isPlaying;
8079
double ppqPos;
8180
int timeSigNumer;
8281
int timeSigDenom;
82+
bool isPlaying;
8383
bool isCycle;
8484
bool hasSHM;
8585
float cycleStart;

include/VstSyncData.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@
4141

4242
struct VstSyncData
4343
{
44-
bool isPlaying;
4544
double ppqPos;
4645
int timeSigNumer;
4746
int timeSigDenom;
47+
bool isPlaying;
4848
bool isCycle;
4949
bool hasSHM;
5050
float cycleStart;

0 commit comments

Comments
 (0)