Browse Source

Add caps-lv2 plugin package

Signed-off-by: falkTX <falktx@falktx.com>
tags/v1.0
falkTX 5 years ago
parent
commit
baeef2573a
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
3 changed files with 71 additions and 4 deletions
  1. +4
    -4
      .travis.yml
  2. +60
    -0
      patches/caps-lv2/01_xplat-compat.patch
  3. +7
    -0
      plugins/caps-lv2.json

+ 4
- 4
.travis.yml View File

@@ -16,28 +16,28 @@ jobs:
compiler: gcc
env:
- TARGET="linux"
- PLUGINS="artyfx"
- PLUGINS="artyfx caps-lv2"

# linux with macOS cross-compilation
- os: linux
compiler: gcc
env:
- TARGET="macos-old"
- PLUGINS="artyfx"
- PLUGINS="artyfx caps-lv2"

# linux with win32 cross-compilation
- os: linux
compiler: gcc
env:
- TARGET="win32"
- PLUGINS="artyfx"
- PLUGINS="artyfx caps-lv2"

# linux with win64 cross-compilation
- os: linux
compiler: gcc
env:
- TARGET="win64"
- PLUGINS="artyfx"
- PLUGINS="artyfx caps-lv2"

before_install:
- bash ${TRAVIS_BUILD_DIR}/.travis/before_install.sh


+ 60
- 0
patches/caps-lv2/01_xplat-compat.patch View File

@@ -0,0 +1,60 @@
diff --git a/basics.h b/basics.h
index 7b1d10d..2f813d3 100644
--- a/basics.h
+++ b/basics.h
@@ -38,6 +38,7 @@
#define _ISOC99_SOURCE 1
#define _ISOC9X_SOURCE 1
+#include <stdint.h>
#include <stdlib.h>
#include <string.h>
@@ -49,14 +50,14 @@
#include "ladspa.h"
-typedef __int8_t int8;
-typedef __uint8_t uint8;
-typedef __int16_t int16;
-typedef __uint16_t uint16;
-typedef __int32_t int32;
-typedef __uint32_t uint32;
-typedef __int64_t int64;
-typedef __uint64_t uint64;
+typedef int8_t int8;
+typedef uint8_t uint8;
+typedef int16_t int16;
+typedef uint16_t uint16;
+typedef int32_t int32;
+typedef uint32_t uint32;
+typedef int64_t int64;
+typedef uint64_t uint64;
#define MIN_GAIN 1e-6 /* -120 dB */
/* smallest non-denormal 32 bit IEEE float is 1.18e-38 */
@@ -124,7 +125,7 @@ T clamp (T value, T lower, T upper)
return value;
}
-static inline float frandom() { return (float) random() / (float) RAND_MAX; }
+static inline float frandom() { return (float) rand() / (float) RAND_MAX; }
/* NB: also true if 0 */
inline bool
diff --git a/dsp/v4f_IIR2.h b/dsp/v4f_IIR2.h
index 7400e04..1e42b56 100644
--- a/dsp/v4f_IIR2.h
+++ b/dsp/v4f_IIR2.h
@@ -32,9 +32,9 @@
namespace DSP {
-#if defined(__APPLE__) || defined(__FreeBSD__)
+#if defined(__APPLE__) || defined(__FreeBSD__) || defined(_WIN32)
-inline float exp10f(float f) {return __exp10f(f);}
+inline float exp10f(float f) {return __builtin_exp10f(f);}
#endif

+ 7
- 0
plugins/caps-lv2.json View File

@@ -0,0 +1,7 @@
{
"name": "caps-lv2",
"version": "5d52a0c6e8863c058c2aab2dea9f901a90d96eb9",
"dlbaseurl": "https://github.com/moddevices/caps-lv2.git",
"dlmethod": "git",
"buildtype": "make"
}

Loading…
Cancel
Save