Browse Source

Update vestige header to latest ardour3 version

tags/1.9.4
falkTX 11 years ago
parent
commit
51aced51e2
3 changed files with 22 additions and 30 deletions
  1. +21
    -25
      source/includes/vestige/aeffectx.h
  2. +1
    -0
      source/tests/CarlaUtils.cpp
  3. +0
    -5
      source/utils/CarlaVstUtils.hpp

+ 21
- 25
source/includes/vestige/aeffectx.h View File

@@ -2,7 +2,7 @@
* aeffectx.h - simple header to allow VeSTige compilation and eventually work * aeffectx.h - simple header to allow VeSTige compilation and eventually work
* *
* Copyright (c) 2006 Javier Serrano Polo <jasp00/at/users.sourceforge.net> * Copyright (c) 2006 Javier Serrano Polo <jasp00/at/users.sourceforge.net>
*
*
* This file is part of Linux MultiMedia Studio - http://lmms.sourceforge.net * This file is part of Linux MultiMedia Studio - http://lmms.sourceforge.net
* *
* This program is free software; you can redistribute it and/or * This program is free software; you can redistribute it and/or
@@ -113,12 +113,11 @@
#define kEffectMagic (CCONST( 'V', 's', 't', 'P' )) #define kEffectMagic (CCONST( 'V', 's', 't', 'P' ))
#define kVstLangEnglish 1 #define kVstLangEnglish 1
#define kVstMidiType 1 #define kVstMidiType 1
#define kVstTempoValid (1 << 10)
#define kVstTransportPlaying (1 << 1)



struct RemoteVstPlugin; struct RemoteVstPlugin;


#define kVstTransportPlaying (1 << 1)

#define kVstNanosValid (1 << 8) #define kVstNanosValid (1 << 8)
#define kVstPpqPosValid (1 << 9) #define kVstPpqPosValid (1 << 9)
#define kVstTempoValid (1 << 10) #define kVstTempoValid (1 << 10)
@@ -250,29 +249,26 @@ struct _AEffect


typedef struct _AEffect AEffect; typedef struct _AEffect AEffect;


struct _VstTimeInfo
typedef struct _VstTimeInfo
{ {
// 00
double samplePos;
// 08
double sampleRate;
// unconfirmed 10 18
char empty1[8 + 8];
// 20?
double tempo;
// unconfirmed 28 30 38
char empty2[8 + 8 + 8];
// 40?
int timeSigNumerator;
// 44?
int timeSigDenominator;
// unconfirmed 48 4c 50
char empty3[4 + 4 + 4];
// 54
int flags;
};
/* info from online documentation of VST provided by Steinberg */

double samplePos;
double sampleRate;
double nanoSeconds;
double ppqPos;
double tempo;
double barStartPos;
double cycleStartPos;
double cycleEndPos;
int32_t timeSigNumerator;
int32_t timeSigDenominator;
int32_t smpteOffset;
int32_t smpteFrameRate;
int32_t samplesToNextClock;
int32_t flags;


typedef struct _VstTimeInfo VstTimeInfo;
} VstTimeInfo;


typedef intptr_t (* audioMasterCallback) (AEffect *, int32_t, int32_t, intptr_t, void *, float); typedef intptr_t (* audioMasterCallback) (AEffect *, int32_t, int32_t, intptr_t, void *, float);




+ 1
- 0
source/tests/CarlaUtils.cpp View File

@@ -20,6 +20,7 @@
#endif #endif


#define HAVE_JUCE #define HAVE_JUCE
#define VESTIGE_HEADER


#include "CarlaUtils.hpp" #include "CarlaUtils.hpp"
#include "CarlaMathUtils.hpp" #include "CarlaMathUtils.hpp"


+ 0
- 5
source/utils/CarlaVstUtils.hpp View File

@@ -117,10 +117,6 @@
struct ERect { struct ERect {
int16_t top, left, bottom, right; int16_t top, left, bottom, right;
}; };
struct VstTimeInfo_R {
double samplePos, sampleRate, nanoSeconds, ppqPos, tempo, barStartPos, cycleStartPos, cycleEndPos;
int32_t timeSigNumerator, timeSigDenominator, smpteOffset, smpteFrameRate, samplesToNextClock, flags;
};
#else #else
#ifndef CARLA_OS_MAC #ifndef CARLA_OS_MAC
# undef TARGET_API_MAC_CARBON # undef TARGET_API_MAC_CARBON
@@ -129,7 +125,6 @@ struct VstTimeInfo_R {
#undef VST_64BIT_PLATFORM #undef VST_64BIT_PLATFORM
#define VST_64BIT_PLATFORM (defined(_WIN64) || defined(__LP64__) || defined (_LP64)) #define VST_64BIT_PLATFORM (defined(_WIN64) || defined(__LP64__) || defined (_LP64))
#include "vst/pluginterfaces/vst2.x/aeffectx.h" #include "vst/pluginterfaces/vst2.x/aeffectx.h"
typedef VstTimeInfo VstTimeInfo_R;
#endif #endif


// ----------------------------------------------------------------------- // -----------------------------------------------------------------------


Loading…
Cancel
Save