lmms
Cross-platform music production software
Toggle main menu visibility
Loading...
Searching...
No Matches
include
VstSyncData.h
Go to the documentation of this file.
1
/*
2
* VstSyncData.h - type declarations needed for VST to lmms host sync
3
*
4
* Copyright (c) 2014 Tobias Doerffel <tobydox/at/users.sourceforge.net>
5
* Copyright (c) 2013 Mike Choi <rdavidian71/at/gmail/dot/com>
6
*
7
* This file is part of LMMS - https://lmms.io
8
*
9
* This program is free software; you can redistribute it and/or
10
* modify it under the terms of the GNU General Public
11
* License as published by the Free Software Foundation; either
12
* version 2 of the License, or (at your option) any later version.
13
*
14
* This program is distributed in the hope that it will be useful,
15
* but WITHOUT ANY WARRANTY; without even the implied warranty of
16
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17
* General Public License for more details.
18
*
19
* You should have received a copy of the GNU General Public
20
* License along with this program (see COPYING); if not, write to the
21
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
22
* Boston, MA 02110-1301 USA.
23
*
24
*/
25
26
#ifndef LMMS_VST_SYNC_DATA_H
27
#define LMMS_VST_SYNC_DATA_H
28
29
namespace
lmms
30
{
31
32
33
// VST sync frequency (in ms), how often will be VST plugin synced
34
// keep it power of two if possible (not used by now)
35
//#define VST_SNC_TIMER 1
36
37
// When defined, latency should be subtracted from song PPQ position
38
//#define VST_SNC_LATENCY
39
40
41
42
struct
VstSyncData
43
{
44
double
ppqPos
;
45
int
timeSigNumer
;
46
int
timeSigDenom
;
47
bool
isPlaying
;
48
bool
isCycle
;
49
float
cycleStart
;
50
float
cycleEnd
;
51
bool
playbackJumped
;
52
int
bufferSize
;
53
int
sampleRate
;
54
int
bpm
;
55
56
#ifdef VST_SNC_LATENCY
57
float
latency;
58
#endif
59
} ;
60
61
62
}
// namespace lmms
63
64
#endif
// LMMS_VST_SYNC_DATA_H
lmms
Definition
RemotePluginBase.cpp:34
lmms::VstSyncData
Definition
VstSyncData.h:43
lmms::VstSyncData::playbackJumped
bool playbackJumped
Definition
VstSyncData.h:51
lmms::VstSyncData::isCycle
bool isCycle
Definition
VstSyncData.h:48
lmms::VstSyncData::cycleEnd
float cycleEnd
Definition
VstSyncData.h:50
lmms::VstSyncData::timeSigDenom
int timeSigDenom
Definition
VstSyncData.h:46
lmms::VstSyncData::sampleRate
int sampleRate
Definition
VstSyncData.h:53
lmms::VstSyncData::cycleStart
float cycleStart
Definition
VstSyncData.h:49
lmms::VstSyncData::isPlaying
bool isPlaying
Definition
VstSyncData.h:47
lmms::VstSyncData::ppqPos
double ppqPos
Definition
VstSyncData.h:44
lmms::VstSyncData::bpm
int bpm
Definition
VstSyncData.h:54
lmms::VstSyncData::timeSigNumer
int timeSigNumer
Definition
VstSyncData.h:45
lmms::VstSyncData::bufferSize
int bufferSize
Definition
VstSyncData.h:52
Generated on
for lmms by
1.18.0