LMMS
Loading...
Searching...
No Matches
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
29namespace 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
43{
44 double ppqPos;
48 bool isCycle;
50 float cycleEnd;
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
Definition AudioAlsa.cpp:35
Definition VstSyncData.h:43
bool playbackJumped
Definition VstSyncData.h:51
bool isCycle
Definition VstSyncData.h:48
float cycleEnd
Definition VstSyncData.h:50
int timeSigDenom
Definition VstSyncData.h:46
int sampleRate
Definition VstSyncData.h:53
float cycleStart
Definition VstSyncData.h:49
bool isPlaying
Definition VstSyncData.h:47
double ppqPos
Definition VstSyncData.h:44
int bpm
Definition VstSyncData.h:54
int timeSigNumer
Definition VstSyncData.h:45
int bufferSize
Definition VstSyncData.h:52