Compare commits
73 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e0779fa6f8 | ||
|
|
8122041d65 | ||
|
|
6711f5d291 | ||
|
|
ab55b26e4b | ||
|
|
b9d99c9c19 | ||
|
|
71a9f94a4b | ||
|
|
3c3d43c6e8 | ||
|
|
67a56c6f48 | ||
|
|
c1d2b96c8c | ||
|
|
46bb1411d4 | ||
|
|
54f1beb056 | ||
|
|
87c4f9c7f2 | ||
|
|
c7f29c19c8 | ||
|
|
940fb0d3d5 | ||
|
|
91519898d0 | ||
|
|
34a4c27761 | ||
|
|
22cf0db03d | ||
|
|
7dcf9a1ffa | ||
|
|
6a5e7b18de | ||
|
|
cc8cb50efa | ||
|
|
313977ebfd | ||
|
|
1e6cd3c6a1 | ||
|
|
7404eef34a | ||
|
|
e401ac5c9d | ||
|
|
959db3d7ac | ||
|
|
5bb5ffc152 | ||
|
|
9abfbd6c94 | ||
|
|
5aa6779108 | ||
|
|
3a1bc2a7ae | ||
|
|
90496600f2 | ||
|
|
25204abdab | ||
|
|
049a88fe8e | ||
|
|
7fb434c26d | ||
|
|
72620542c0 | ||
|
|
e979ac06c5 | ||
|
|
14815728ee | ||
|
|
52e76c66b4 | ||
|
|
6ac9c28fee | ||
|
|
26a48e1c3a | ||
|
|
3e2fea65dc | ||
|
|
2037f082d2 | ||
|
|
76a990dbdc | ||
|
|
b9d51f0a40 | ||
|
|
1c4ab566d9 | ||
|
|
3b0fd9dfca | ||
|
|
a88b89682a | ||
|
|
6b5f3565d8 | ||
|
|
ca778dd487 | ||
|
|
bc81274fa8 | ||
|
|
478cef528a | ||
|
|
83e8a9e1b9 | ||
|
|
42f7a5fb1e | ||
|
|
1be0823f5b | ||
|
|
3e9314bb63 | ||
|
|
9a0f930416 | ||
|
|
bca86d9c1a | ||
|
|
3d274078ce | ||
|
|
245a223924 | ||
|
|
de89f683af | ||
|
|
a80dbd67e4 | ||
|
|
b987d3ed04 | ||
|
|
b0ffa45011 | ||
|
|
ae67c792fe | ||
|
|
19130e5fce | ||
|
|
3d95f82f30 | ||
|
|
96e41491ad | ||
|
|
a5d773cfce | ||
|
|
e2c3e65767 | ||
|
|
d0c072b372 | ||
|
|
2835c99783 | ||
|
|
8fb260317b | ||
|
|
6a0952dc34 | ||
|
|
6191a64325 |
@@ -15,7 +15,7 @@ INCLUDE(FindPkgConfig)
|
||||
|
||||
SET(VERSION_MAJOR "1")
|
||||
SET(VERSION_MINOR "0")
|
||||
SET(VERSION_PATCH "2")
|
||||
SET(VERSION_PATCH "3")
|
||||
#SET(VERSION_SUFFIX "")
|
||||
SET(VERSION "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}")
|
||||
IF(VERSION_SUFFIX)
|
||||
@@ -47,7 +47,6 @@ OPTION(WANT_WINMM "Include WinMM MIDI support" OFF)
|
||||
IF(LMMS_BUILD_APPLE)
|
||||
SET(WANT_ALSA OFF)
|
||||
SET(WANT_PULSEAUDIO OFF)
|
||||
SET(WANT_SWH OFF)
|
||||
SET(WANT_VST OFF)
|
||||
SET(STATUS_ALSA "<not supported on this platform>")
|
||||
SET(STATUS_PULSEAUDIO "<not supported on this platform>")
|
||||
@@ -388,6 +387,18 @@ ELSE(WIN32)
|
||||
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC -DPIC")
|
||||
ENDIF(WIN32)
|
||||
|
||||
# set up apple vars before traversing into data/scripts
|
||||
SET(MACOSX_BUNDLE_ICON_FILE "lmms.icns")
|
||||
SET(MACOSX_BUNDLE_GUI_IDENTIFIER "LMMS")
|
||||
SET(MACOSX_BUNDLE_LONG_VERSION_STRING "${VERSION}")
|
||||
SET(MACOSX_BUNDLE_BUNDLE_NAME "LMMS")
|
||||
SET(MACOSX_BUNDLE_SHORT_VERSION_STRING "${VERSION}")
|
||||
SET(MACOSX_BUNDLE_BUNDLE_VERSION "${VERSION}")
|
||||
SET(MACOSX_BUNDLE_COPYRIGHT "Tobias Doerffel, 2008-2010")
|
||||
SET(MACOSX_BUNDLE_MIMETYPE "application/x-lmms-project")
|
||||
SET(MACOSX_BUNDLE_MIMETYPE_ICON "project.icns")
|
||||
SET(MACOSX_BUNDLE_MIMETYPE_ID "net.sourceforge.lmms")
|
||||
SET(MACOSX_BUNDLE_PROJECT_URL "http://lmms.sourceforge.net")
|
||||
|
||||
|
||||
# make sub-directories
|
||||
@@ -452,6 +463,7 @@ IF(LMMS_BUILD_WIN32)
|
||||
"${MINGW_PREFIX}/bin/libvorbisenc-2.dll"
|
||||
"${MINGW_PREFIX}/bin/libvorbisfile-3.dll"
|
||||
"${MINGW_PREFIX}/bin/libogg-0.dll"
|
||||
"${MINGW_PREFIX}/lib/libfltk.dll"
|
||||
"${MINGW_PREFIX}/bin/libfluidsynth.dll"
|
||||
"${MINGW_PREFIX}/bin/libfftw3f-3.dll"
|
||||
"${MINGW_PREFIX}/bin/libFLAC-8.dll"
|
||||
@@ -461,6 +473,7 @@ IF(LMMS_BUILD_WIN32)
|
||||
"${MINGW_PREFIX}/bin/libglib-2.0-0.dll"
|
||||
"${MINGW_PREFIX}/bin/libgthread-2.0-0.dll"
|
||||
"${MINGW_PREFIX}/bin/zlib1.dll"
|
||||
"${MINGW_PREFIX}/${CMAKE_SYSTEM_PROCESSOR}-w64-mingw32/bin/libwinpthread-1.dll"
|
||||
DESTINATION .)
|
||||
|
||||
ELSE(LMMS_BUILD_WIN32)
|
||||
@@ -656,14 +669,6 @@ IF(WIN64)
|
||||
InstallDir \\\"\\\$PROGRAMFILES64\\\\${CPACK_PACKAGE_INSTALL_DIRECTORY}\\\"")
|
||||
ENDIF(WIN64)
|
||||
|
||||
SET(MACOSX_BUNDLE_ICON_FILE "${CMAKE_SOURCE_DIR}/data/themes/default/icon.png")
|
||||
SET(MACOSX_BUNDLE_GUI_IDENTIFIER "LMMS")
|
||||
SET(MACOSX_BUNDLE_LONG_VERSION_STRING "${VERSION}")
|
||||
SET(MACOSX_BUNDLE_BUNDLE_NAME "LMMS")
|
||||
SET(MACOSX_BUNDLE_SHORT_VERSION_STRING "${VERSION}")
|
||||
SET(MACOSX_BUNDLE_BUNDLE_VERSION "${VERSION}")
|
||||
SET(MACOSX_BUNDLE_COPYRIGHT "Tobias Doerffel, 2008-2010")
|
||||
|
||||
SET(CPACK_SOURCE_GENERATOR "TBZ2")
|
||||
SET(CPACK_SOURCE_PACKAGE_FILE_NAME "lmms-${VERSION}")
|
||||
INCLUDE(CPack)
|
||||
|
||||
10
README
10
README
@@ -1,4 +1,4 @@
|
||||
LMMS 1.0.2
|
||||
LMMS 1.0.3
|
||||
===========
|
||||
|
||||
Copyright (c) 2004-2014 by LMMS developers
|
||||
@@ -93,13 +93,9 @@ can be found at
|
||||
http://lmms.sourceforge.net
|
||||
|
||||
|
||||
Details on development can be found at
|
||||
Details on development can be found in the Wiki:
|
||||
|
||||
http://lmms.sourceforge.net/development.php
|
||||
|
||||
or in the Wiki:
|
||||
|
||||
http://lmms.sourceforge.net/wiki/
|
||||
https://github.com/LMMS/lmms/wiki
|
||||
|
||||
Before coding a new big feature, please ALWAYS post your idea and suggestions
|
||||
about your feature and about the intended implementation to the
|
||||
|
||||
@@ -4,6 +4,7 @@ ADD_SUBDIRECTORY(presets)
|
||||
ADD_SUBDIRECTORY(projects)
|
||||
ADD_SUBDIRECTORY(samples)
|
||||
ADD_SUBDIRECTORY(themes)
|
||||
ADD_SUBDIRECTORY(scripts)
|
||||
|
||||
IF(LMMS_BUILD_LINUX)
|
||||
INSTALL(FILES themes/default/icon.png DESTINATION "${DATA_DIR}/pixmaps" RENAME lmms.png)
|
||||
@@ -17,3 +18,6 @@ IF(LMMS_BUILD_WIN32)
|
||||
INSTALL(FILES ${RAWWAVES} DESTINATION "${DATA_DIR}/stk/rawwaves")
|
||||
ENDIF(LMMS_BUILD_WIN32)
|
||||
|
||||
IF(LMMS_BUILD_APPLE)
|
||||
CONFIGURE_FILE("${CMAKE_SOURCE_DIR}/data/lmms.plist.in" "${CMAKE_INSTALL_PREFIX}/Info.plist")
|
||||
ENDIF(LMMS_BUILD_APPLE)
|
||||
147
data/lmms.plist.in
Normal file
147
data/lmms.plist.in
Normal file
@@ -0,0 +1,147 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
|
||||
<key>CFBundleDevelopmentRegion</key>
|
||||
<string>English</string>
|
||||
|
||||
<key>CFBundleIconFile</key>
|
||||
<string>@MACOSX_BUNDLE_ICON_FILE@</string>
|
||||
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>APPL</string>
|
||||
|
||||
<key>CFBundleGetInfoString</key>
|
||||
<string>@MACOSX_BUNDLE_GUI_IDENTIFIER@ @MACOSX_BUNDLE_LONG_VERSION_STRING@</string>
|
||||
|
||||
<!--
|
||||
#############################################################
|
||||
# Apple Creator Code Registered Application Signatures #
|
||||
#############################################################
|
||||
# Company: LMMS Foundation #
|
||||
# Registrant: tres.finocchiaro@gmail.com #
|
||||
# ASCII Code: LMMS #
|
||||
# HEX: 4C4D4D53 #
|
||||
#############################################################
|
||||
# Contact Apple Developer Support at cfreg@apple.com #
|
||||
# with any requested changes #
|
||||
#############################################################
|
||||
-->
|
||||
<key>CFBundleSignature</key>
|
||||
<string>@MACOSX_BUNDLE_GUI_IDENTIFIER@</string>
|
||||
|
||||
<key>CFBundleExecutable</key>
|
||||
<string>@MACOSX_BUNDLE_GUI_IDENTIFIER@</string>
|
||||
|
||||
<key>CFBundleVersion</key>
|
||||
<string>@MACOSX_BUNDLE_LONG_VERSION_STRING@</string>
|
||||
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>@MACOSX_BUNDLE_LONG_VERSION_STRING@</string>
|
||||
|
||||
<key>CFBundleName</key>
|
||||
<string>@MACOSX_BUNDLE_BUNDLE_NAME@</string>
|
||||
|
||||
<key>CFBundleInfoDictionaryVersion</key>
|
||||
<string>6.0</string>
|
||||
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>@MACOSX_BUNDLE_MIMETYPE_ID@</string>
|
||||
|
||||
<key>CFBundleDocumentTypes</key>
|
||||
<array>
|
||||
|
||||
<dict>
|
||||
<key>CFBundleTypeExtensions</key>
|
||||
<array>
|
||||
<string>mmpz</string>
|
||||
</array>
|
||||
<key>CFBundleTypeIconFile</key>
|
||||
<string>@MACOSX_BUNDLE_MIMETYPE_ICON@</string>
|
||||
<key>CFBundleTypeName</key>
|
||||
<string>@MACOSX_BUNDLE_GUI_IDENTIFIER@ Project</string>
|
||||
<key>CFBundleTypeOSTypes</key>
|
||||
<array>
|
||||
<string>mmpz</string>
|
||||
</array>
|
||||
<key>CFBundleTypeRole</key>
|
||||
<string>Editor</string>
|
||||
<key>CFBundleTypeMIMETypes</key>
|
||||
<array>
|
||||
<string>@MACOSX_BUNDLE_MIMETYPE@</string>
|
||||
</array>
|
||||
</dict>
|
||||
|
||||
<dict>
|
||||
<key>CFBundleTypeExtensions</key>
|
||||
<array>
|
||||
<string>mmp</string>
|
||||
</array>
|
||||
<key>CFBundleTypeIconFile</key>
|
||||
<string>@MACOSX_BUNDLE_MIMETYPE_ICON@</string>
|
||||
<key>CFBundleTypeName</key>
|
||||
<string>@MACOSX_BUNDLE_GUI_IDENTIFIER@ Project (uncompressed)</string>
|
||||
<key>CFBundleTypeOSTypes</key>
|
||||
<array>
|
||||
<string>mmp</string>
|
||||
</array>
|
||||
<key>CFBundleTypeRole</key>
|
||||
<string>Editor</string>
|
||||
<key>CFBundleTypeMIMETypes</key>
|
||||
<array>
|
||||
<string>@MACOSX_BUNDLE_MIMETYPE@</string>
|
||||
</array>
|
||||
</dict>
|
||||
|
||||
</array>
|
||||
|
||||
<key>UTExportedTypeDeclarations</key>
|
||||
<array>
|
||||
<dict>
|
||||
<key>UTTypeIdentifier</key>
|
||||
<string>@MACOSX_BUNDLE_MIMETYPE_ID@.mmpz</string>
|
||||
<key>UTTypeReferenceURL</key>
|
||||
<string>@MACOSX_BUNDLE_PROJECT_URL@</string>
|
||||
<key>UTTypeDescription</key>
|
||||
<string>@MACOSX_BUNDLE_GUI_IDENTIFIER@ Project</string>
|
||||
<key>UTTypeIconFile</key>
|
||||
<string>@MACOSX_BUNDLE_MIMETYPE_ICON@</string>
|
||||
<key>UTTypeConformsTo</key>
|
||||
<array>
|
||||
<string>public.data</string>
|
||||
</array>
|
||||
<key>UTTypeTagSpecification</key>
|
||||
<dict>
|
||||
<key>public.filename-extension</key>
|
||||
<array>
|
||||
<string>mmpz</string>
|
||||
</array>
|
||||
</dict>
|
||||
</dict>
|
||||
|
||||
<dict>
|
||||
<key>UTTypeIdentifier</key>
|
||||
<string>@MACOSX_BUNDLE_MIMETYPE_ID@.mmp</string>
|
||||
<key>UTTypeReferenceURL</key>
|
||||
<string>@MACOSX_BUNDLE_PROJECT_URL@</string>
|
||||
<key>UTTypeDescription</key>
|
||||
<string>@MACOSX_BUNDLE_GUI_IDENTIFIER@ Project (uncompressed)</string>
|
||||
<key>UTTypeIconFile</key>
|
||||
<string>@MACOSX_BUNDLE_MIMETYPE_ICON@</string>
|
||||
<key>UTTypeConformsTo</key>
|
||||
<array>
|
||||
<string>public.xml</string>
|
||||
<string>public.data</string>
|
||||
</array>
|
||||
<key>UTTypeTagSpecification</key>
|
||||
<dict>
|
||||
<key>public.filename-extension</key>
|
||||
<array>
|
||||
<string>mmp</string>
|
||||
</array>
|
||||
</dict>
|
||||
</dict>
|
||||
</array>
|
||||
</dict>
|
||||
</plist>
|
||||
Binary file not shown.
1870
data/locale/de.ts
1870
data/locale/de.ts
File diff suppressed because it is too large
Load Diff
Binary file not shown.
1855
data/locale/it.ts
1855
data/locale/it.ts
File diff suppressed because it is too large
Load Diff
BIN
data/project.icns
Normal file
BIN
data/project.icns
Normal file
Binary file not shown.
13
data/scripts/CMakeLists.txt
Normal file
13
data/scripts/CMakeLists.txt
Normal file
@@ -0,0 +1,13 @@
|
||||
SET(BUILD_ROOT "${CMAKE_CURRENT_BINARY_DIR}/../../")
|
||||
IF(LMMS_BUILD_APPLE)
|
||||
CONFIGURE_FILE("${CMAKE_SOURCE_DIR}/data/scripts/create_apple_bundle.sh.in"
|
||||
"${BUILD_ROOT}/create_apple_bundle.sh" @ONLY)
|
||||
CONFIGURE_FILE("${CMAKE_SOURCE_DIR}/data/scripts/create_apple_dmg.sh.in"
|
||||
"${BUILD_ROOT}/create_apple_dmg.sh" @ONLY)
|
||||
# Add execute permissions to bundle script
|
||||
SET(CHMOD_CMD "chmod")
|
||||
SET(CHMOD_ARG1 "u+x")
|
||||
SET(CHMOD_ARG2 "${BUILD_ROOT}/create_apple_bundle.sh")
|
||||
EXECUTE_PROCESS(COMMAND ${CHMOD_CMD} ${CHMOD_ARG1} ${CHMOD_ARG2})
|
||||
INSTALL(CODE "EXECUTE_PROCESS(COMMAND ${BUILD_ROOT}/create_apple_bundle.sh)")
|
||||
ENDIF(LMMS_BUILD_APPLE)
|
||||
121
data/scripts/create_apple_bundle.sh.in
Normal file
121
data/scripts/create_apple_bundle.sh.in
Normal file
@@ -0,0 +1,121 @@
|
||||
#!/bin/bash
|
||||
#title :create_applet_installer.sh
|
||||
#description :Creates Apple ".app" bundle for LMMS
|
||||
#author :Tres Finocchiaro
|
||||
#date :20140504
|
||||
#version :1.1
|
||||
#usage :bash create_applet_installer.sh
|
||||
#notes :See also https://github.com/LMMS
|
||||
#notes :Troubleshooting try: export DYLD_PRINT_LIBRARIES=1; export VERBOSE=1;
|
||||
#requires :deploymacqt
|
||||
#=========================================================================================
|
||||
|
||||
# MacPorts Location
|
||||
MACPORTS=/opt/local
|
||||
|
||||
# LMMS project root directory (extracted source)
|
||||
CMAKE_SRC=@CMAKE_SOURCE_DIR@
|
||||
|
||||
# LMMS compiled (install) resources
|
||||
CMAKE_INSTALL=@CMAKE_INSTALL_PREFIX@
|
||||
|
||||
# LMMS working build directory
|
||||
CMAKE_BUILD=$(cd @CMAKE_CURRENT_BINARY_DIR@/../..; pwd)
|
||||
|
||||
# STK rawwaves directory
|
||||
STK_RAWWAVE=${HOME}/stk-*/rawwaves
|
||||
|
||||
# Place to create ".app" bundle
|
||||
APP=${HOME}/Desktop/LMMS.app
|
||||
|
||||
# MacPorts installs libreadline with wrong permissions
|
||||
LIBREADLINE=${MACPORTS}/lib/libreadline.6.2.dylib
|
||||
|
||||
# The DMG packager script location
|
||||
DMG_SCRIPT_SRC=${CMAKE_BUILD}/create_apple_dmg.sh
|
||||
DMG_SCRIPT_DST=${HOME}/Desktop/create_apple_dmg.sh
|
||||
|
||||
#=========================================================================================
|
||||
|
||||
MSG_COLOR='\x1B[1;36m'
|
||||
COLOR_RESET='\x1B[0m'
|
||||
echo -e "${MSG_COLOR}\n\nCreating App Bundle \"${APP}\"...${COLOR_RESET}"
|
||||
|
||||
# Check for u+w permissions on libreadline
|
||||
CHECKREADLINE=$(stat -f "%p" $LIBREADLINE)
|
||||
CHECKREADLINE=${CHECKREADLINE:3:1}
|
||||
if [ "${CHECKREADLINE}" != "7" ]
|
||||
then
|
||||
echo -e "\n\n\t\t\t\t***********\n\t\t\t\t* WARNING *\n\t\t\t\t***********"
|
||||
echo -e "File ${LIBREADLINE} is not marked as user writable."
|
||||
echo -e "This will break macdeployqt's linking process after it is copied."
|
||||
echo -e "A sudo password is required to elevate and fix using chmod u+w."
|
||||
echo -e "\nPLEASE ENTER SUDO PASSWORD:"
|
||||
sudo chmod u+w "${MACPORTS}/lib/libreadline.6.2.dylib"
|
||||
fi
|
||||
|
||||
# Remove any old .app bundles
|
||||
rm -Rf ${APP}
|
||||
|
||||
# Create new bundle, copy our built code to it
|
||||
mkdir -p ${APP}
|
||||
cd ${CMAKE_INSTALL}
|
||||
mkdir ${APP}/Contents
|
||||
cp -R * ${APP}/Contents
|
||||
|
||||
# Manually copy STK rawwaves
|
||||
mkdir -p ${APP}/Contents/share/stk/rawwaves
|
||||
cp ${STK_RAWWAVE}/*.raw ${APP}/Contents/share/stk/rawwaves
|
||||
|
||||
# Make all libraries writable for macdeployqt
|
||||
cd ${APP}
|
||||
find . -type f -print0 | xargs -0 chmod u+w
|
||||
|
||||
# Move lmms binary to the proper location
|
||||
mkdir -p ${APP}/Contents/MacOS
|
||||
mv ${APP}/Contents/bin/lmms ${APP}/Contents/MacOS
|
||||
rm -rf ${APP}/Contents/bin
|
||||
|
||||
# Move libraries to proper locations
|
||||
mkdir -p ${APP}/Contents/Frameworks
|
||||
mv ${APP}/Contents/lib/lmms/libZynAddSubFxCore.dylib \
|
||||
${APP}/Contents/Frameworks/libZynAddSubFxCore.dylib
|
||||
|
||||
mv ${APP}/Contents/lib/lmms/RemoteZynAddSubFx \
|
||||
${APP}/Contents/MacOS/RemoteZynAddSubFx
|
||||
|
||||
# Fix more Zyn Linking issues
|
||||
install_name_tool -change libZynAddSubFxCore.dylib \
|
||||
@loader_path/../../Frameworks/libZynAddSubFxCore.dylib \
|
||||
${APP}/Contents/lib/lmms/libzynaddsubfx.so
|
||||
|
||||
install_name_tool -change ${CMAKE_BUILD}/plugins/zynaddsubfx/libZynAddSubFxCore.dylib \
|
||||
@loader_path/../../Frameworks/libZynAddSubFxCore.dylib \
|
||||
${APP}/Contents/MacOS/RemoteZynAddSubFx
|
||||
|
||||
# Build a list of shared objects in target/lib/lmms
|
||||
for file in ${APP}/Contents/lib/lmms/*.so; do
|
||||
_executables="${_executables} -executable=${APP}/Contents/lib/lmms/${file##*/}"
|
||||
done
|
||||
|
||||
# Build a list of shared objects in target/lib/lmms/ladspa
|
||||
for file in ${APP}/Contents/lib/lmms/ladspa/*.so; do
|
||||
_executables="${_executables} -executable=${APP}/Contents/lib/lmms/ladspa/${file##*/}"
|
||||
done
|
||||
|
||||
# Additional binaries that require linking
|
||||
_executables="${_executables} -executable=${APP}/Contents/MacOS/RemoteZynAddSubFx"
|
||||
_executables="${_executables} -executable=${APP}/Contents/Frameworks/libZynAddSubFxCore.dylib"
|
||||
|
||||
# Build our App Package using "macdeployqt"
|
||||
macdeployqt ${APP} $_executables
|
||||
|
||||
# OS X Specific Artwork
|
||||
cp ${CMAKE_SRC}/data/*.icns ${APP}/Contents/Resources/
|
||||
|
||||
# Done. Ready to build DMG
|
||||
echo -e "\nFinished.\n\nYou may run LMMS from the Desktop."
|
||||
echo -e "\nTo create an Apple DMG Package run ${MSG_COLOR}\"${DMG_SCRIPT_DST}\"${COLOR_RESET}.\n"
|
||||
echo -e "(Note: You can drag/drop the script directly into this terminal window.)\n"
|
||||
cp ${DMG_SCRIPT_SRC} ${DMG_SCRIPT_DST}
|
||||
chmod +x ${DMG_SCRIPT_DST}
|
||||
6
data/scripts/create_apple_dmg.sh → data/scripts/create_apple_dmg.sh.in
Executable file → Normal file
6
data/scripts/create_apple_dmg.sh → data/scripts/create_apple_dmg.sh.in
Executable file → Normal file
@@ -10,10 +10,10 @@ if [ -d "$dir" ]; then
|
||||
fi
|
||||
|
||||
# set up your app name, version number, and background image file name
|
||||
APP_NAME="LMMS"
|
||||
VERSION="1.0.0"
|
||||
APP_NAME="@MACOSX_BUNDLE_BUNDLE_NAME@"
|
||||
VERSION="@MACOSX_BUNDLE_LONG_VERSION_STRING@"
|
||||
DMG_BACKGROUND_IMG="dmg_branding.png"
|
||||
cp $HOME/lmms/data/$DMG_BACKGROUND_IMG .
|
||||
cp "@CMAKE_SOURCE_DIR@/data/${DMG_BACKGROUND_IMG}" .
|
||||
|
||||
# you should not need to change these
|
||||
APP_LOWERCASE=$(echo $APP_NAME|tr '[:upper:]' '[:lower:]')
|
||||
@@ -1,130 +0,0 @@
|
||||
#!/bin/bash
|
||||
#title :create_applet_installer.sh
|
||||
#description :Creates Apple ".app" bundle for LMMS
|
||||
#author :Tres Finocchiaro
|
||||
#date :20140331
|
||||
#version :1.0
|
||||
#usage :bash create_applet_installer.sh
|
||||
#notes :See also https://github.com/LMMS
|
||||
#notes :Troubleshooting try: export DYLD_PRINT_LIBRARIES=1
|
||||
#requires :deploymacqt
|
||||
#=========================================================================================
|
||||
|
||||
# MacPorts Location
|
||||
MACPORTS=/opt/local
|
||||
|
||||
# LMMS source directory
|
||||
CMAKE_SRC=$HOME/lmms
|
||||
|
||||
# LMMS compiled resources
|
||||
CMAKE_INSTALL=$CMAKE_SRC/target
|
||||
|
||||
# LMMS source build directory
|
||||
CMAKE_BUILD=$CMAKE_SRC/build
|
||||
|
||||
# STK rawwaves directory
|
||||
STK_RAWWAVE=$HOME/stk-*/rawwaves
|
||||
|
||||
|
||||
# Place to create ".app" bundle
|
||||
APP=$HOME/Desktop/LMMS.app
|
||||
|
||||
# MacPorts installs libreadline with wrong permissions
|
||||
LIBREADLINE=$MACPORTS/lib/libreadline.6.2.dylib
|
||||
|
||||
#=========================================================================================
|
||||
|
||||
echo -e "\n\nRunning..."
|
||||
|
||||
# Check for u+w permissions on libreadline
|
||||
_perm=`stat -f "%p" $LIBREADLINE`
|
||||
_perm=${_perm:3:1}
|
||||
if [ ${_perm} != "7" ]
|
||||
then
|
||||
echo -e "\n\n\t\t\t\t***********\n\t\t\t\t* WARNING *\n\t\t\t\t***********"
|
||||
echo -e "File $LIBREADLINE is not marked as user writable."
|
||||
echo -e "This will break macdeployqt's linking process after it is copied."
|
||||
echo -e "A sudo password is required to elevate and fix using chmod u+w."
|
||||
echo -e "\nPLEASE ENTER SUDO PASSWORD:"
|
||||
sudo chmod u+w $MACPORTS/lib/libreadline.6.2.dylib
|
||||
fi
|
||||
|
||||
# Remove any old .app bundles
|
||||
rm -Rf $APP
|
||||
|
||||
# Create new bundle, copy our built code to it
|
||||
mkdir -p $APP
|
||||
cd $CMAKE_INSTALL
|
||||
mkdir $APP/Contents
|
||||
cp -R * $APP/Contents
|
||||
|
||||
# Manually copy STK rawwaves
|
||||
mkdir -p $APP/Contents/share/stk/rawwaves
|
||||
cp $STK_RAWWAVE/*.raw $APP/Contents/share/stk/rawwaves
|
||||
|
||||
# Make all libraries writable for macdeployqt
|
||||
cd $APP
|
||||
find . -type f -print0 | xargs -0 chmod u+w
|
||||
|
||||
# Move lmms binary to the proper location
|
||||
mkdir -p $APP/Contents/MacOS
|
||||
mv $APP/Contents/bin/lmms $APP/Contents/MacOS
|
||||
rmdir $APP/Contents/bin
|
||||
|
||||
# Move libraries to proper locations
|
||||
mkdir -p $APP/Contents/Frameworks
|
||||
mv $APP/Contents/lib/lmms/libZynAddSubFxCore.dylib \
|
||||
$APP/Contents/Frameworks/libZynAddSubFxCore.dylib
|
||||
|
||||
mv $APP/Contents/lib/lmms/RemoteZynAddSubFx \
|
||||
$APP/Contents/MacOS/RemoteZynAddSubFx
|
||||
|
||||
# Fix more Zyn Linking issues
|
||||
# install_name_tool -change $CMAKE_INSTALL/lib/lmms/libZynAddSubFxCore.dylib \
|
||||
# @loader_path/../../Frameworks/libZynAddSubFxCore.dylib \
|
||||
# $APP/Contents/lib/lmms/libzynaddsubfx.so
|
||||
|
||||
install_name_tool -change libZynAddSubFxCore.dylib \
|
||||
@loader_path/../../Frameworks/libZynAddSubFxCore.dylib \
|
||||
$APP/Contents/lib/lmms/libzynaddsubfx.so
|
||||
|
||||
install_name_tool -change $CMAKE_BUILD/plugins/zynaddsubfx/libZynAddSubFxCore.dylib \
|
||||
@loader_path/../../Frameworks/libZynAddSubFxCore.dylib \
|
||||
$APP/Contents/MacOS/RemoteZynAddSubFx
|
||||
|
||||
# Build a list of shared objects in target/lib/lmms
|
||||
for file in $APP/Contents/lib/lmms/*.so; do
|
||||
_executables="$_executables -executable=$APP/Contents/lib/lmms/${file##*/}"
|
||||
done
|
||||
|
||||
# Build a list of shared objects in target/lib/lmms/ladspa
|
||||
for file in $APP/Contents/lib/lmms/ladspa/*.so; do
|
||||
_executables="$_executables -executable=$APP/Contents/lib/lmms/ladspa/${file##*/}"
|
||||
done
|
||||
|
||||
# Additional binaries that require linking
|
||||
_executables="$_executables -executable=$APP/Contents/MacOS/RemoteZynAddSubFx"
|
||||
_executables="$_executables -executable=$APP/Contents/Frameworks/libZynAddSubFxCore.dylib"
|
||||
|
||||
# Build our App Package using "macdeployqt"
|
||||
macdeployqt $APP $_executables
|
||||
|
||||
# OS X Specific Artwork
|
||||
cp $CMAKE_SRC/data/lmms.icns $APP/Contents/Resources/
|
||||
|
||||
# Create "Info.plist" using lmms.icns file, http://iconverticons.com/online/)
|
||||
echo -e "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" > "$APP/Contents/Info.plist"
|
||||
echo -e "<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\"" >> "$APP/Contents/Info.plist"
|
||||
echo -e "\"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">" >> "$APP/Contents/Info.plist"
|
||||
echo -e " <plist version=\"1.0\">" >> "$APP/Contents/Info.plist"
|
||||
echo -e " <dict>" >> "$APP/Contents/Info.plist"
|
||||
echo -e " <key>CFBundleIconFile</key>" >> "$APP/Contents/Info.plist"
|
||||
echo -e " <string>lmms.icns</string>" >> "$APP/Contents/Info.plist"
|
||||
echo -e " </dict>" >> "$APP/Contents/Info.plist"
|
||||
echo -e "</plist>" >> "$APP/Contents/Info.plist"
|
||||
|
||||
# Done. Ready to build DMG
|
||||
echo -e "\nFinished.\n\nPlease run \"create_apple_dmg.sh\" from the Desktop to build the installer.\n"
|
||||
echo -e "Note: You can drag/drop it into this terminal window.)\n"
|
||||
cp $CMAKE_SRC/data/scripts/create_apple_dmg.sh $HOME/Desktop/
|
||||
chmod +x $HOME/Desktop/create_apple_dmg.sh
|
||||
@@ -1,7 +1,9 @@
|
||||
/********************
|
||||
* LMMS style sheet *
|
||||
********************/
|
||||
QLabel {
|
||||
|
||||
/* most foreground text items */
|
||||
QLabel, QTreeWidget, QListWidget, QGroupBox {
|
||||
color: #e0e0e0;
|
||||
}
|
||||
|
||||
|
||||
@@ -52,7 +52,7 @@
|
||||
#include <process.h>
|
||||
#endif
|
||||
|
||||
#include <Qt/qglobal.h>
|
||||
#include <QtCore/QtGlobal>
|
||||
|
||||
#if QT_VERSION >= 0x040400
|
||||
#include <QtCore/QSystemSemaphore>
|
||||
@@ -75,7 +75,7 @@
|
||||
|
||||
#ifdef USE_QT_SHMEM
|
||||
|
||||
#include <Qt/qglobal.h>
|
||||
#include <QtCore/QtGlobal>
|
||||
|
||||
#if QT_VERSION >= 0x040400
|
||||
#include <QtCore/QSharedMemory>
|
||||
|
||||
@@ -2,7 +2,7 @@ lmmsicon ICON data/lmms.ico
|
||||
#include <windows.h>
|
||||
|
||||
VS_VERSION_INFO VERSIONINFO
|
||||
FILEVERSION 1,0,2,0
|
||||
FILEVERSION 1,0,3,0
|
||||
FILEFLAGSMASK VS_FFI_FILEFLAGSMASK
|
||||
FILEOS VOS_NT_WINDOWS32
|
||||
FILETYPE VFT_APP
|
||||
|
||||
@@ -12,9 +12,7 @@ ADD_SUBDIRECTORY(LadspaEffect)
|
||||
ADD_SUBDIRECTORY(lb302)
|
||||
#ADD_SUBDIRECTORY(lb303)
|
||||
ADD_SUBDIRECTORY(midi_import)
|
||||
IF(NOT LMMS_BUILD_APPLE)
|
||||
ADD_SUBDIRECTORY(opl2)
|
||||
ENDIF()
|
||||
ADD_SUBDIRECTORY(opl2)
|
||||
ADD_SUBDIRECTORY(organic)
|
||||
ADD_SUBDIRECTORY(papu)
|
||||
ADD_SUBDIRECTORY(patman)
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#ifdef WIN32
|
||||
#define _WINDOWS_DLL_EXPORT_ __declspec(dllexport)
|
||||
int bIsFirstTime = 1;
|
||||
void _init(); // forward declaration
|
||||
void __attribute__((constructor)) swh_init(); // forward declaration
|
||||
#else
|
||||
#define _WINDOWS_DLL_EXPORT_
|
||||
#endif
|
||||
@@ -44,7 +44,7 @@ const LADSPA_Descriptor *ladspa_descriptor(unsigned long index) {
|
||||
|
||||
#ifdef WIN32
|
||||
if (bIsFirstTime) {
|
||||
_init();
|
||||
swh_init();
|
||||
bIsFirstTime = 0;
|
||||
}
|
||||
#endif
|
||||
@@ -161,7 +161,7 @@ static void runAddingAlias(LADSPA_Handle instance, unsigned long sample_count) {
|
||||
}
|
||||
}
|
||||
|
||||
void _init() {
|
||||
void __attribute__((constructor)) swh_init() {
|
||||
char **port_names;
|
||||
LADSPA_PortDescriptor *port_descriptors;
|
||||
LADSPA_PortRangeHint *port_range_hints;
|
||||
@@ -240,7 +240,7 @@ void _init() {
|
||||
}
|
||||
}
|
||||
|
||||
void _fini() {
|
||||
void __attribute__((destructor)) swh_fini() {
|
||||
if (aliasDescriptor) {
|
||||
free((LADSPA_PortDescriptor *)aliasDescriptor->PortDescriptors);
|
||||
free((char **)aliasDescriptor->PortNames);
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#ifdef WIN32
|
||||
#define _WINDOWS_DLL_EXPORT_ __declspec(dllexport)
|
||||
int bIsFirstTime = 1;
|
||||
void _init(); // forward declaration
|
||||
void __attribute__((constructor)) swh_init(); // forward declaration
|
||||
#else
|
||||
#define _WINDOWS_DLL_EXPORT_
|
||||
#endif
|
||||
@@ -127,7 +127,7 @@ const LADSPA_Descriptor *ladspa_descriptor(unsigned long index) {
|
||||
|
||||
#ifdef WIN32
|
||||
if (bIsFirstTime) {
|
||||
_init();
|
||||
swh_init();
|
||||
bIsFirstTime = 0;
|
||||
}
|
||||
#endif
|
||||
@@ -1088,7 +1088,7 @@ static void runAddingAllpass_c(LADSPA_Handle instance, unsigned long sample_coun
|
||||
plugin_data->write_phase = write_phase;
|
||||
}
|
||||
|
||||
void _init() {
|
||||
void __attribute__((constructor)) swh_init() {
|
||||
char **port_names;
|
||||
LADSPA_PortDescriptor *port_descriptors;
|
||||
LADSPA_PortRangeHint *port_range_hints;
|
||||
@@ -1346,7 +1346,7 @@ void _init() {
|
||||
}
|
||||
}
|
||||
|
||||
void _fini() {
|
||||
void __attribute__((destructor)) swh_fini() {
|
||||
if (allpass_nDescriptor) {
|
||||
free((LADSPA_PortDescriptor *)allpass_nDescriptor->PortDescriptors);
|
||||
free((char **)allpass_nDescriptor->PortNames);
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#ifdef WIN32
|
||||
#define _WINDOWS_DLL_EXPORT_ __declspec(dllexport)
|
||||
int bIsFirstTime = 1;
|
||||
void _init(); // forward declaration
|
||||
void __attribute__((constructor)) swh_init(); // forward declaration
|
||||
#else
|
||||
#define _WINDOWS_DLL_EXPORT_
|
||||
#endif
|
||||
@@ -66,7 +66,7 @@ const LADSPA_Descriptor *ladspa_descriptor(unsigned long index) {
|
||||
|
||||
#ifdef WIN32
|
||||
if (bIsFirstTime) {
|
||||
_init();
|
||||
swh_init();
|
||||
bIsFirstTime = 0;
|
||||
}
|
||||
#endif
|
||||
@@ -359,7 +359,7 @@ static void runAddingAmPitchshift(LADSPA_Handle instance, unsigned long sample_c
|
||||
*(plugin_data->latency) = delay_ofs/2;
|
||||
}
|
||||
|
||||
void _init() {
|
||||
void __attribute__((constructor)) swh_init() {
|
||||
char **port_names;
|
||||
LADSPA_PortDescriptor *port_descriptors;
|
||||
LADSPA_PortRangeHint *port_range_hints;
|
||||
@@ -455,7 +455,7 @@ void _init() {
|
||||
}
|
||||
}
|
||||
|
||||
void _fini() {
|
||||
void __attribute__((destructor)) swh_fini() {
|
||||
if (amPitchshiftDescriptor) {
|
||||
free((LADSPA_PortDescriptor *)amPitchshiftDescriptor->PortDescriptors);
|
||||
free((char **)amPitchshiftDescriptor->PortNames);
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#ifdef WIN32
|
||||
#define _WINDOWS_DLL_EXPORT_ __declspec(dllexport)
|
||||
int bIsFirstTime = 1;
|
||||
void _init(); // forward declaration
|
||||
void __attribute__((constructor)) swh_init(); // forward declaration
|
||||
#else
|
||||
#define _WINDOWS_DLL_EXPORT_
|
||||
#endif
|
||||
@@ -47,7 +47,7 @@ const LADSPA_Descriptor *ladspa_descriptor(unsigned long index) {
|
||||
|
||||
#ifdef WIN32
|
||||
if (bIsFirstTime) {
|
||||
_init();
|
||||
swh_init();
|
||||
bIsFirstTime = 0;
|
||||
}
|
||||
#endif
|
||||
@@ -154,7 +154,7 @@ static void runAddingAmp(LADSPA_Handle instance, unsigned long sample_count) {
|
||||
}
|
||||
}
|
||||
|
||||
void _init() {
|
||||
void __attribute__((constructor)) swh_init() {
|
||||
char **port_names;
|
||||
LADSPA_PortDescriptor *port_descriptors;
|
||||
LADSPA_PortRangeHint *port_range_hints;
|
||||
@@ -233,7 +233,7 @@ void _init() {
|
||||
}
|
||||
}
|
||||
|
||||
void _fini() {
|
||||
void __attribute__((destructor)) swh_fini() {
|
||||
if (ampDescriptor) {
|
||||
free((LADSPA_PortDescriptor *)ampDescriptor->PortDescriptors);
|
||||
free((char **)ampDescriptor->PortNames);
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#ifdef WIN32
|
||||
#define _WINDOWS_DLL_EXPORT_ __declspec(dllexport)
|
||||
int bIsFirstTime = 1;
|
||||
void _init(); // forward declaration
|
||||
void __attribute__((constructor)) swh_init(); // forward declaration
|
||||
#else
|
||||
#define _WINDOWS_DLL_EXPORT_
|
||||
#endif
|
||||
@@ -51,7 +51,7 @@ const LADSPA_Descriptor *ladspa_descriptor(unsigned long index) {
|
||||
|
||||
#ifdef WIN32
|
||||
if (bIsFirstTime) {
|
||||
_init();
|
||||
swh_init();
|
||||
bIsFirstTime = 0;
|
||||
}
|
||||
#endif
|
||||
@@ -188,7 +188,7 @@ static void runAddingBandpass_a_iir(LADSPA_Handle instance, unsigned long sample
|
||||
iir_process_buffer_1s_5(iirf, gt, input, output, sample_count,0);
|
||||
}
|
||||
|
||||
void _init() {
|
||||
void __attribute__((constructor)) swh_init() {
|
||||
char **port_names;
|
||||
LADSPA_PortDescriptor *port_descriptors;
|
||||
LADSPA_PortRangeHint *port_range_hints;
|
||||
@@ -277,7 +277,7 @@ void _init() {
|
||||
}
|
||||
}
|
||||
|
||||
void _fini() {
|
||||
void __attribute__((destructor)) swh_fini() {
|
||||
if (bandpass_a_iirDescriptor) {
|
||||
free((LADSPA_PortDescriptor *)bandpass_a_iirDescriptor->PortDescriptors);
|
||||
free((char **)bandpass_a_iirDescriptor->PortNames);
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#ifdef WIN32
|
||||
#define _WINDOWS_DLL_EXPORT_ __declspec(dllexport)
|
||||
int bIsFirstTime = 1;
|
||||
void _init(); // forward declaration
|
||||
void __attribute__((constructor)) swh_init(); // forward declaration
|
||||
#else
|
||||
#define _WINDOWS_DLL_EXPORT_
|
||||
#endif
|
||||
@@ -58,7 +58,7 @@ const LADSPA_Descriptor *ladspa_descriptor(unsigned long index) {
|
||||
|
||||
#ifdef WIN32
|
||||
if (bIsFirstTime) {
|
||||
_init();
|
||||
swh_init();
|
||||
bIsFirstTime = 0;
|
||||
}
|
||||
#endif
|
||||
@@ -244,7 +244,7 @@ static void runAddingBandpass_iir(LADSPA_Handle instance, unsigned long sample_c
|
||||
iir_process_buffer_ns_5(iirf, gt, input, output, sample_count,RUN_ADDING);
|
||||
}
|
||||
|
||||
void _init() {
|
||||
void __attribute__((constructor)) swh_init() {
|
||||
char **port_names;
|
||||
LADSPA_PortDescriptor *port_descriptors;
|
||||
LADSPA_PortRangeHint *port_range_hints;
|
||||
@@ -343,7 +343,7 @@ void _init() {
|
||||
}
|
||||
}
|
||||
|
||||
void _fini() {
|
||||
void __attribute__((destructor)) swh_fini() {
|
||||
if (bandpass_iirDescriptor) {
|
||||
free((LADSPA_PortDescriptor *)bandpass_iirDescriptor->PortDescriptors);
|
||||
free((char **)bandpass_iirDescriptor->PortNames);
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#ifdef WIN32
|
||||
#define _WINDOWS_DLL_EXPORT_ __declspec(dllexport)
|
||||
int bIsFirstTime = 1;
|
||||
void _init(); // forward declaration
|
||||
void __attribute__((constructor)) swh_init(); // forward declaration
|
||||
#else
|
||||
#define _WINDOWS_DLL_EXPORT_
|
||||
#endif
|
||||
@@ -92,7 +92,7 @@ const LADSPA_Descriptor *ladspa_descriptor(unsigned long index) {
|
||||
|
||||
#ifdef WIN32
|
||||
if (bIsFirstTime) {
|
||||
_init();
|
||||
swh_init();
|
||||
bIsFirstTime = 0;
|
||||
}
|
||||
#endif
|
||||
@@ -365,7 +365,7 @@ static void runAddingBodeShifter(LADSPA_Handle instance, unsigned long sample_co
|
||||
*(plugin_data->latency) = 99;
|
||||
}
|
||||
|
||||
void _init() {
|
||||
void __attribute__((constructor)) swh_init() {
|
||||
char **port_names;
|
||||
LADSPA_PortDescriptor *port_descriptors;
|
||||
LADSPA_PortRangeHint *port_range_hints;
|
||||
@@ -458,7 +458,7 @@ void _init() {
|
||||
}
|
||||
}
|
||||
|
||||
void _fini() {
|
||||
void __attribute__((destructor)) swh_fini() {
|
||||
if (bodeShifterDescriptor) {
|
||||
free((LADSPA_PortDescriptor *)bodeShifterDescriptor->PortDescriptors);
|
||||
free((char **)bodeShifterDescriptor->PortNames);
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#ifdef WIN32
|
||||
#define _WINDOWS_DLL_EXPORT_ __declspec(dllexport)
|
||||
int bIsFirstTime = 1;
|
||||
void _init(); // forward declaration
|
||||
void __attribute__((constructor)) swh_init(); // forward declaration
|
||||
#else
|
||||
#define _WINDOWS_DLL_EXPORT_
|
||||
#endif
|
||||
@@ -99,7 +99,7 @@ const LADSPA_Descriptor *ladspa_descriptor(unsigned long index) {
|
||||
|
||||
#ifdef WIN32
|
||||
if (bIsFirstTime) {
|
||||
_init();
|
||||
swh_init();
|
||||
bIsFirstTime = 0;
|
||||
}
|
||||
#endif
|
||||
@@ -247,7 +247,7 @@ static void runBodeShifterCV(LADSPA_Handle instance, unsigned long sample_count)
|
||||
/* Perform the Hilbert FIR convolution
|
||||
* (probably FFT would be faster) */
|
||||
hilb = 0.0f;
|
||||
for (i = 0; i <= NZEROS/2; i++) {
|
||||
for (i = 0; i < NZEROS/2; i++) {
|
||||
hilb += (xcoeffs[i] * delay[(dptr - i*2) & (D_SIZE - 1)]);
|
||||
}
|
||||
|
||||
@@ -393,7 +393,7 @@ static void runAddingBodeShifterCV(LADSPA_Handle instance, unsigned long sample_
|
||||
*(plugin_data->latency) = 99;
|
||||
}
|
||||
|
||||
void _init() {
|
||||
void __attribute__((constructor)) swh_init() {
|
||||
char **port_names;
|
||||
LADSPA_PortDescriptor *port_descriptors;
|
||||
LADSPA_PortRangeHint *port_range_hints;
|
||||
@@ -523,7 +523,7 @@ void _init() {
|
||||
}
|
||||
}
|
||||
|
||||
void _fini() {
|
||||
void __attribute__((destructor)) swh_fini() {
|
||||
if (bodeShifterCVDescriptor) {
|
||||
free((LADSPA_PortDescriptor *)bodeShifterCVDescriptor->PortDescriptors);
|
||||
free((char **)bodeShifterCVDescriptor->PortNames);
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#ifdef WIN32
|
||||
#define _WINDOWS_DLL_EXPORT_ __declspec(dllexport)
|
||||
int bIsFirstTime = 1;
|
||||
void _init(); // forward declaration
|
||||
void __attribute__((constructor)) swh_init(); // forward declaration
|
||||
#else
|
||||
#define _WINDOWS_DLL_EXPORT_
|
||||
#endif
|
||||
@@ -89,7 +89,7 @@ const LADSPA_Descriptor *ladspa_descriptor(unsigned long index) {
|
||||
|
||||
#ifdef WIN32
|
||||
if (bIsFirstTime) {
|
||||
_init();
|
||||
swh_init();
|
||||
bIsFirstTime = 0;
|
||||
}
|
||||
#endif
|
||||
@@ -497,7 +497,7 @@ static void runAddingButthigh_iir(LADSPA_Handle instance, unsigned long sample_c
|
||||
iir_process_buffer_1s_5(iirf, gt, input, output, sample_count,0);
|
||||
}
|
||||
|
||||
void _init() {
|
||||
void __attribute__((constructor)) swh_init() {
|
||||
char **port_names;
|
||||
LADSPA_PortDescriptor *port_descriptors;
|
||||
LADSPA_PortRangeHint *port_range_hints;
|
||||
@@ -741,7 +741,7 @@ void _init() {
|
||||
}
|
||||
}
|
||||
|
||||
void _fini() {
|
||||
void __attribute__((destructor)) swh_fini() {
|
||||
if (bwxover_iirDescriptor) {
|
||||
free((LADSPA_PortDescriptor *)bwxover_iirDescriptor->PortDescriptors);
|
||||
free((char **)bwxover_iirDescriptor->PortNames);
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#ifdef WIN32
|
||||
#define _WINDOWS_DLL_EXPORT_ __declspec(dllexport)
|
||||
int bIsFirstTime = 1;
|
||||
void _init(); // forward declaration
|
||||
void __attribute__((constructor)) swh_init(); // forward declaration
|
||||
#else
|
||||
#define _WINDOWS_DLL_EXPORT_
|
||||
#endif
|
||||
@@ -86,7 +86,7 @@ const LADSPA_Descriptor *ladspa_descriptor(unsigned long index) {
|
||||
|
||||
#ifdef WIN32
|
||||
if (bIsFirstTime) {
|
||||
_init();
|
||||
swh_init();
|
||||
bIsFirstTime = 0;
|
||||
}
|
||||
#endif
|
||||
@@ -314,7 +314,7 @@ static void runAddingChebstortion(LADSPA_Handle instance, unsigned long sample_c
|
||||
plugin_data->count = count;
|
||||
}
|
||||
|
||||
void _init() {
|
||||
void __attribute__((constructor)) swh_init() {
|
||||
char **port_names;
|
||||
LADSPA_PortDescriptor *port_descriptors;
|
||||
LADSPA_PortRangeHint *port_range_hints;
|
||||
@@ -399,7 +399,7 @@ void _init() {
|
||||
}
|
||||
}
|
||||
|
||||
void _fini() {
|
||||
void __attribute__((destructor)) swh_fini() {
|
||||
if (chebstortionDescriptor) {
|
||||
free((LADSPA_PortDescriptor *)chebstortionDescriptor->PortDescriptors);
|
||||
free((char **)chebstortionDescriptor->PortNames);
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#ifdef WIN32
|
||||
#define _WINDOWS_DLL_EXPORT_ __declspec(dllexport)
|
||||
int bIsFirstTime = 1;
|
||||
void _init(); // forward declaration
|
||||
void __attribute__((constructor)) swh_init(); // forward declaration
|
||||
#else
|
||||
#define _WINDOWS_DLL_EXPORT_
|
||||
#endif
|
||||
@@ -55,7 +55,7 @@ const LADSPA_Descriptor *ladspa_descriptor(unsigned long index) {
|
||||
|
||||
#ifdef WIN32
|
||||
if (bIsFirstTime) {
|
||||
_init();
|
||||
swh_init();
|
||||
bIsFirstTime = 0;
|
||||
}
|
||||
#endif
|
||||
@@ -251,7 +251,7 @@ static void runAddingComb(LADSPA_Handle instance, unsigned long sample_count) {
|
||||
plugin_data->last_offset = offset;
|
||||
}
|
||||
|
||||
void _init() {
|
||||
void __attribute__((constructor)) swh_init() {
|
||||
char **port_names;
|
||||
LADSPA_PortDescriptor *port_descriptors;
|
||||
LADSPA_PortRangeHint *port_range_hints;
|
||||
@@ -340,7 +340,7 @@ void _init() {
|
||||
}
|
||||
}
|
||||
|
||||
void _fini() {
|
||||
void __attribute__((destructor)) swh_fini() {
|
||||
if (combDescriptor) {
|
||||
free((LADSPA_PortDescriptor *)combDescriptor->PortDescriptors);
|
||||
free((char **)combDescriptor->PortNames);
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#ifdef WIN32
|
||||
#define _WINDOWS_DLL_EXPORT_ __declspec(dllexport)
|
||||
int bIsFirstTime = 1;
|
||||
void _init(); // forward declaration
|
||||
void __attribute__((constructor)) swh_init(); // forward declaration
|
||||
#else
|
||||
#define _WINDOWS_DLL_EXPORT_
|
||||
#endif
|
||||
@@ -125,7 +125,7 @@ const LADSPA_Descriptor *ladspa_descriptor(unsigned long index) {
|
||||
|
||||
#ifdef WIN32
|
||||
if (bIsFirstTime) {
|
||||
_init();
|
||||
swh_init();
|
||||
bIsFirstTime = 0;
|
||||
}
|
||||
#endif
|
||||
@@ -1094,7 +1094,7 @@ static void runAddingComb_c(LADSPA_Handle instance, unsigned long sample_count)
|
||||
plugin_data->write_phase = write_phase;
|
||||
}
|
||||
|
||||
void _init() {
|
||||
void __attribute__((constructor)) swh_init() {
|
||||
char **port_names;
|
||||
LADSPA_PortDescriptor *port_descriptors;
|
||||
LADSPA_PortRangeHint *port_range_hints;
|
||||
@@ -1352,7 +1352,7 @@ void _init() {
|
||||
}
|
||||
}
|
||||
|
||||
void _fini() {
|
||||
void __attribute__((destructor)) swh_fini() {
|
||||
if (comb_nDescriptor) {
|
||||
free((LADSPA_PortDescriptor *)comb_nDescriptor->PortDescriptors);
|
||||
free((char **)comb_nDescriptor->PortNames);
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#ifdef WIN32
|
||||
#define _WINDOWS_DLL_EXPORT_ __declspec(dllexport)
|
||||
int bIsFirstTime = 1;
|
||||
void _init(); // forward declaration
|
||||
void __attribute__((constructor)) swh_init(); // forward declaration
|
||||
#else
|
||||
#define _WINDOWS_DLL_EXPORT_
|
||||
#endif
|
||||
@@ -55,7 +55,7 @@ const LADSPA_Descriptor *ladspa_descriptor(unsigned long index) {
|
||||
|
||||
#ifdef WIN32
|
||||
if (bIsFirstTime) {
|
||||
_init();
|
||||
swh_init();
|
||||
bIsFirstTime = 0;
|
||||
}
|
||||
#endif
|
||||
@@ -255,7 +255,7 @@ static void runAddingCombSplitter(LADSPA_Handle instance, unsigned long sample_c
|
||||
plugin_data->last_offset = offset;
|
||||
}
|
||||
|
||||
void _init() {
|
||||
void __attribute__((constructor)) swh_init() {
|
||||
char **port_names;
|
||||
LADSPA_PortDescriptor *port_descriptors;
|
||||
LADSPA_PortRangeHint *port_range_hints;
|
||||
@@ -341,7 +341,7 @@ void _init() {
|
||||
}
|
||||
}
|
||||
|
||||
void _fini() {
|
||||
void __attribute__((destructor)) swh_fini() {
|
||||
if (combSplitterDescriptor) {
|
||||
free((LADSPA_PortDescriptor *)combSplitterDescriptor->PortDescriptors);
|
||||
free((char **)combSplitterDescriptor->PortNames);
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#ifdef WIN32
|
||||
#define _WINDOWS_DLL_EXPORT_ __declspec(dllexport)
|
||||
int bIsFirstTime = 1;
|
||||
void _init(); // forward declaration
|
||||
void __attribute__((constructor)) swh_init(); // forward declaration
|
||||
#else
|
||||
#define _WINDOWS_DLL_EXPORT_
|
||||
#endif
|
||||
@@ -45,7 +45,7 @@ const LADSPA_Descriptor *ladspa_descriptor(unsigned long index) {
|
||||
|
||||
#ifdef WIN32
|
||||
if (bIsFirstTime) {
|
||||
_init();
|
||||
swh_init();
|
||||
bIsFirstTime = 0;
|
||||
}
|
||||
#endif
|
||||
@@ -171,7 +171,7 @@ static void runAddingConst(LADSPA_Handle instance, unsigned long sample_count) {
|
||||
plugin_data->last_amp = amp;
|
||||
}
|
||||
|
||||
void _init() {
|
||||
void __attribute__((constructor)) swh_init() {
|
||||
char **port_names;
|
||||
LADSPA_PortDescriptor *port_descriptors;
|
||||
LADSPA_PortRangeHint *port_range_hints;
|
||||
@@ -250,7 +250,7 @@ void _init() {
|
||||
}
|
||||
}
|
||||
|
||||
void _fini() {
|
||||
void __attribute__((destructor)) swh_fini() {
|
||||
if (constDescriptor) {
|
||||
free((LADSPA_PortDescriptor *)constDescriptor->PortDescriptors);
|
||||
free((char **)constDescriptor->PortNames);
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#ifdef WIN32
|
||||
#define _WINDOWS_DLL_EXPORT_ __declspec(dllexport)
|
||||
int bIsFirstTime = 1;
|
||||
void _init(); // forward declaration
|
||||
void __attribute__((constructor)) swh_init(); // forward declaration
|
||||
#else
|
||||
#define _WINDOWS_DLL_EXPORT_
|
||||
#endif
|
||||
@@ -49,7 +49,7 @@ const LADSPA_Descriptor *ladspa_descriptor(unsigned long index) {
|
||||
|
||||
#ifdef WIN32
|
||||
if (bIsFirstTime) {
|
||||
_init();
|
||||
swh_init();
|
||||
bIsFirstTime = 0;
|
||||
}
|
||||
#endif
|
||||
@@ -187,7 +187,7 @@ static void runAddingCrossoverDist(LADSPA_Handle instance, unsigned long sample_
|
||||
}
|
||||
}
|
||||
|
||||
void _init() {
|
||||
void __attribute__((constructor)) swh_init() {
|
||||
char **port_names;
|
||||
LADSPA_PortDescriptor *port_descriptors;
|
||||
LADSPA_PortRangeHint *port_range_hints;
|
||||
@@ -276,7 +276,7 @@ void _init() {
|
||||
}
|
||||
}
|
||||
|
||||
void _fini() {
|
||||
void __attribute__((destructor)) swh_fini() {
|
||||
if (crossoverDistDescriptor) {
|
||||
free((LADSPA_PortDescriptor *)crossoverDistDescriptor->PortDescriptors);
|
||||
free((char **)crossoverDistDescriptor->PortNames);
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#ifdef WIN32
|
||||
#define _WINDOWS_DLL_EXPORT_ __declspec(dllexport)
|
||||
int bIsFirstTime = 1;
|
||||
void _init(); // forward declaration
|
||||
void __attribute__((constructor)) swh_init(); // forward declaration
|
||||
#else
|
||||
#define _WINDOWS_DLL_EXPORT_
|
||||
#endif
|
||||
@@ -44,7 +44,7 @@ const LADSPA_Descriptor *ladspa_descriptor(unsigned long index) {
|
||||
|
||||
#ifdef WIN32
|
||||
if (bIsFirstTime) {
|
||||
_init();
|
||||
swh_init();
|
||||
bIsFirstTime = 0;
|
||||
}
|
||||
#endif
|
||||
@@ -166,7 +166,7 @@ static void runAddingDcRemove(LADSPA_Handle instance, unsigned long sample_count
|
||||
plugin_data->otm1 = otm1;
|
||||
}
|
||||
|
||||
void _init() {
|
||||
void __attribute__((constructor)) swh_init() {
|
||||
char **port_names;
|
||||
LADSPA_PortDescriptor *port_descriptors;
|
||||
LADSPA_PortRangeHint *port_range_hints;
|
||||
@@ -235,7 +235,7 @@ void _init() {
|
||||
}
|
||||
}
|
||||
|
||||
void _fini() {
|
||||
void __attribute__((destructor)) swh_fini() {
|
||||
if (dcRemoveDescriptor) {
|
||||
free((LADSPA_PortDescriptor *)dcRemoveDescriptor->PortDescriptors);
|
||||
free((char **)dcRemoveDescriptor->PortNames);
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#ifdef WIN32
|
||||
#define _WINDOWS_DLL_EXPORT_ __declspec(dllexport)
|
||||
int bIsFirstTime = 1;
|
||||
void _init(); // forward declaration
|
||||
void __attribute__((constructor)) swh_init(); // forward declaration
|
||||
#else
|
||||
#define _WINDOWS_DLL_EXPORT_
|
||||
#endif
|
||||
@@ -53,7 +53,7 @@ const LADSPA_Descriptor *ladspa_descriptor(unsigned long index) {
|
||||
|
||||
#ifdef WIN32
|
||||
if (bIsFirstTime) {
|
||||
_init();
|
||||
swh_init();
|
||||
bIsFirstTime = 0;
|
||||
}
|
||||
#endif
|
||||
@@ -247,7 +247,7 @@ static void runAddingDecay(LADSPA_Handle instance, unsigned long sample_count) {
|
||||
plugin_data->y = y;
|
||||
}
|
||||
|
||||
void _init() {
|
||||
void __attribute__((constructor)) swh_init() {
|
||||
char **port_names;
|
||||
LADSPA_PortDescriptor *port_descriptors;
|
||||
LADSPA_PortRangeHint *port_range_hints;
|
||||
@@ -325,7 +325,7 @@ void _init() {
|
||||
}
|
||||
}
|
||||
|
||||
void _fini() {
|
||||
void __attribute__((destructor)) swh_fini() {
|
||||
if (decayDescriptor) {
|
||||
free((LADSPA_PortDescriptor *)decayDescriptor->PortDescriptors);
|
||||
free((char **)decayDescriptor->PortNames);
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#ifdef WIN32
|
||||
#define _WINDOWS_DLL_EXPORT_ __declspec(dllexport)
|
||||
int bIsFirstTime = 1;
|
||||
void _init(); // forward declaration
|
||||
void __attribute__((constructor)) swh_init(); // forward declaration
|
||||
#else
|
||||
#define _WINDOWS_DLL_EXPORT_
|
||||
#endif
|
||||
@@ -53,7 +53,7 @@ const LADSPA_Descriptor *ladspa_descriptor(unsigned long index) {
|
||||
|
||||
#ifdef WIN32
|
||||
if (bIsFirstTime) {
|
||||
_init();
|
||||
swh_init();
|
||||
bIsFirstTime = 0;
|
||||
}
|
||||
#endif
|
||||
@@ -240,7 +240,7 @@ static void runAddingDecimator(LADSPA_Handle instance, unsigned long sample_coun
|
||||
plugin_data->count = count;
|
||||
}
|
||||
|
||||
void _init() {
|
||||
void __attribute__((constructor)) swh_init() {
|
||||
char **port_names;
|
||||
LADSPA_PortDescriptor *port_descriptors;
|
||||
LADSPA_PortRangeHint *port_range_hints;
|
||||
@@ -335,7 +335,7 @@ void _init() {
|
||||
}
|
||||
}
|
||||
|
||||
void _fini() {
|
||||
void __attribute__((destructor)) swh_fini() {
|
||||
if (decimatorDescriptor) {
|
||||
free((LADSPA_PortDescriptor *)decimatorDescriptor->PortDescriptors);
|
||||
free((char **)decimatorDescriptor->PortNames);
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#ifdef WIN32
|
||||
#define _WINDOWS_DLL_EXPORT_ __declspec(dllexport)
|
||||
int bIsFirstTime = 1;
|
||||
void _init(); // forward declaration
|
||||
void __attribute__((constructor)) swh_init(); // forward declaration
|
||||
#else
|
||||
#define _WINDOWS_DLL_EXPORT_
|
||||
#endif
|
||||
@@ -48,7 +48,7 @@ const LADSPA_Descriptor *ladspa_descriptor(unsigned long index) {
|
||||
|
||||
#ifdef WIN32
|
||||
if (bIsFirstTime) {
|
||||
_init();
|
||||
swh_init();
|
||||
bIsFirstTime = 0;
|
||||
}
|
||||
#endif
|
||||
@@ -160,7 +160,7 @@ static void runAddingDeclip(LADSPA_Handle instance, unsigned long sample_count)
|
||||
}
|
||||
}
|
||||
|
||||
void _init() {
|
||||
void __attribute__((constructor)) swh_init() {
|
||||
char **port_names;
|
||||
LADSPA_PortDescriptor *port_descriptors;
|
||||
LADSPA_PortRangeHint *port_range_hints;
|
||||
@@ -235,7 +235,7 @@ void _init() {
|
||||
}
|
||||
}
|
||||
|
||||
void _fini() {
|
||||
void __attribute__((destructor)) swh_fini() {
|
||||
if (declipDescriptor) {
|
||||
free((LADSPA_PortDescriptor *)declipDescriptor->PortDescriptors);
|
||||
free((char **)declipDescriptor->PortNames);
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#ifdef WIN32
|
||||
#define _WINDOWS_DLL_EXPORT_ __declspec(dllexport)
|
||||
int bIsFirstTime = 1;
|
||||
void _init(); // forward declaration
|
||||
void __attribute__((constructor)) swh_init(); // forward declaration
|
||||
#else
|
||||
#define _WINDOWS_DLL_EXPORT_
|
||||
#endif
|
||||
@@ -98,7 +98,7 @@ const LADSPA_Descriptor *ladspa_descriptor(unsigned long index) {
|
||||
|
||||
#ifdef WIN32
|
||||
if (bIsFirstTime) {
|
||||
_init();
|
||||
swh_init();
|
||||
bIsFirstTime = 0;
|
||||
}
|
||||
#endif
|
||||
@@ -862,7 +862,7 @@ static void runAddingDelay_c(LADSPA_Handle instance, unsigned long sample_count)
|
||||
plugin_data->write_phase = write_phase;
|
||||
}
|
||||
|
||||
void _init() {
|
||||
void __attribute__((constructor)) swh_init() {
|
||||
char **port_names;
|
||||
LADSPA_PortDescriptor *port_descriptors;
|
||||
LADSPA_PortRangeHint *port_range_hints;
|
||||
@@ -1093,7 +1093,7 @@ void _init() {
|
||||
}
|
||||
}
|
||||
|
||||
void _fini() {
|
||||
void __attribute__((destructor)) swh_fini() {
|
||||
if (delay_nDescriptor) {
|
||||
free((LADSPA_PortDescriptor *)delay_nDescriptor->PortDescriptors);
|
||||
free((char **)delay_nDescriptor->PortNames);
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#ifdef WIN32
|
||||
#define _WINDOWS_DLL_EXPORT_ __declspec(dllexport)
|
||||
int bIsFirstTime = 1;
|
||||
void _init(); // forward declaration
|
||||
void __attribute__((constructor)) swh_init(); // forward declaration
|
||||
#else
|
||||
#define _WINDOWS_DLL_EXPORT_
|
||||
#endif
|
||||
@@ -90,7 +90,7 @@ const LADSPA_Descriptor *ladspa_descriptor(unsigned long index) {
|
||||
|
||||
#ifdef WIN32
|
||||
if (bIsFirstTime) {
|
||||
_init();
|
||||
swh_init();
|
||||
bIsFirstTime = 0;
|
||||
}
|
||||
#endif
|
||||
@@ -668,7 +668,7 @@ static void runAddingDelayorama(LADSPA_Handle instance, unsigned long sample_cou
|
||||
plugin_data->last_out = out;
|
||||
}
|
||||
|
||||
void _init() {
|
||||
void __attribute__((constructor)) swh_init() {
|
||||
char **port_names;
|
||||
LADSPA_PortDescriptor *port_descriptors;
|
||||
LADSPA_PortRangeHint *port_range_hints;
|
||||
@@ -847,7 +847,7 @@ void _init() {
|
||||
}
|
||||
}
|
||||
|
||||
void _fini() {
|
||||
void __attribute__((destructor)) swh_fini() {
|
||||
if (delayoramaDescriptor) {
|
||||
free((LADSPA_PortDescriptor *)delayoramaDescriptor->PortDescriptors);
|
||||
free((char **)delayoramaDescriptor->PortNames);
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#ifdef WIN32
|
||||
#define _WINDOWS_DLL_EXPORT_ __declspec(dllexport)
|
||||
int bIsFirstTime = 1;
|
||||
void _init(); // forward declaration
|
||||
void __attribute__((constructor)) swh_init(); // forward declaration
|
||||
#else
|
||||
#define _WINDOWS_DLL_EXPORT_
|
||||
#endif
|
||||
@@ -44,7 +44,7 @@ const LADSPA_Descriptor *ladspa_descriptor(unsigned long index) {
|
||||
|
||||
#ifdef WIN32
|
||||
if (bIsFirstTime) {
|
||||
_init();
|
||||
swh_init();
|
||||
bIsFirstTime = 0;
|
||||
}
|
||||
#endif
|
||||
@@ -185,7 +185,7 @@ static void runAddingDiode(LADSPA_Handle instance, unsigned long sample_count) {
|
||||
}
|
||||
}
|
||||
|
||||
void _init() {
|
||||
void __attribute__((constructor)) swh_init() {
|
||||
char **port_names;
|
||||
LADSPA_PortDescriptor *port_descriptors;
|
||||
LADSPA_PortRangeHint *port_range_hints;
|
||||
@@ -264,7 +264,7 @@ void _init() {
|
||||
}
|
||||
}
|
||||
|
||||
void _fini() {
|
||||
void __attribute__((destructor)) swh_fini() {
|
||||
if (diodeDescriptor) {
|
||||
free((LADSPA_PortDescriptor *)diodeDescriptor->PortDescriptors);
|
||||
free((char **)diodeDescriptor->PortNames);
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#ifdef WIN32
|
||||
#define _WINDOWS_DLL_EXPORT_ __declspec(dllexport)
|
||||
int bIsFirstTime = 1;
|
||||
void _init(); // forward declaration
|
||||
void __attribute__((constructor)) swh_init(); // forward declaration
|
||||
#else
|
||||
#define _WINDOWS_DLL_EXPORT_
|
||||
#endif
|
||||
@@ -50,7 +50,7 @@ const LADSPA_Descriptor *ladspa_descriptor(unsigned long index) {
|
||||
|
||||
#ifdef WIN32
|
||||
if (bIsFirstTime) {
|
||||
_init();
|
||||
swh_init();
|
||||
bIsFirstTime = 0;
|
||||
}
|
||||
#endif
|
||||
@@ -249,7 +249,7 @@ static void runAddingDivider(LADSPA_Handle instance, unsigned long sample_count)
|
||||
plugin_data->out = out;
|
||||
}
|
||||
|
||||
void _init() {
|
||||
void __attribute__((constructor)) swh_init() {
|
||||
char **port_names;
|
||||
LADSPA_PortDescriptor *port_descriptors;
|
||||
LADSPA_PortRangeHint *port_range_hints;
|
||||
@@ -331,7 +331,7 @@ void _init() {
|
||||
}
|
||||
}
|
||||
|
||||
void _fini() {
|
||||
void __attribute__((destructor)) swh_fini() {
|
||||
if (dividerDescriptor) {
|
||||
free((LADSPA_PortDescriptor *)dividerDescriptor->PortDescriptors);
|
||||
free((char **)dividerDescriptor->PortNames);
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#ifdef WIN32
|
||||
#define _WINDOWS_DLL_EXPORT_ __declspec(dllexport)
|
||||
int bIsFirstTime = 1;
|
||||
void _init(); // forward declaration
|
||||
void __attribute__((constructor)) swh_init(); // forward declaration
|
||||
#else
|
||||
#define _WINDOWS_DLL_EXPORT_
|
||||
#endif
|
||||
@@ -85,7 +85,7 @@ const LADSPA_Descriptor *ladspa_descriptor(unsigned long index) {
|
||||
|
||||
#ifdef WIN32
|
||||
if (bIsFirstTime) {
|
||||
_init();
|
||||
swh_init();
|
||||
bIsFirstTime = 0;
|
||||
}
|
||||
#endif
|
||||
@@ -463,7 +463,7 @@ static void runAddingDj_eq(LADSPA_Handle instance, unsigned long sample_count) {
|
||||
*(plugin_data->latency) = 3; //XXX is this right?
|
||||
}
|
||||
|
||||
void _init() {
|
||||
void __attribute__((constructor)) swh_init() {
|
||||
char **port_names;
|
||||
LADSPA_PortDescriptor *port_descriptors;
|
||||
LADSPA_PortRangeHint *port_range_hints;
|
||||
@@ -674,7 +674,7 @@ void _init() {
|
||||
}
|
||||
}
|
||||
|
||||
void _fini() {
|
||||
void __attribute__((destructor)) swh_fini() {
|
||||
if (dj_eq_monoDescriptor) {
|
||||
free((LADSPA_PortDescriptor *)dj_eq_monoDescriptor->PortDescriptors);
|
||||
free((char **)dj_eq_monoDescriptor->PortNames);
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#ifdef WIN32
|
||||
#define _WINDOWS_DLL_EXPORT_ __declspec(dllexport)
|
||||
int bIsFirstTime = 1;
|
||||
void _init(); // forward declaration
|
||||
void __attribute__((constructor)) swh_init(); // forward declaration
|
||||
#else
|
||||
#define _WINDOWS_DLL_EXPORT_
|
||||
#endif
|
||||
@@ -63,7 +63,7 @@ const LADSPA_Descriptor *ladspa_descriptor(unsigned long index) {
|
||||
|
||||
#ifdef WIN32
|
||||
if (bIsFirstTime) {
|
||||
_init();
|
||||
swh_init();
|
||||
bIsFirstTime = 0;
|
||||
}
|
||||
#endif
|
||||
@@ -366,7 +366,7 @@ static void runAddingDjFlanger(LADSPA_Handle instance, unsigned long sample_coun
|
||||
plugin_data->buffer_pos = buffer_pos;
|
||||
}
|
||||
|
||||
void _init() {
|
||||
void __attribute__((constructor)) swh_init() {
|
||||
char **port_names;
|
||||
LADSPA_PortDescriptor *port_descriptors;
|
||||
LADSPA_PortRangeHint *port_range_hints;
|
||||
@@ -472,7 +472,7 @@ void _init() {
|
||||
}
|
||||
}
|
||||
|
||||
void _fini() {
|
||||
void __attribute__((destructor)) swh_fini() {
|
||||
if (djFlangerDescriptor) {
|
||||
free((LADSPA_PortDescriptor *)djFlangerDescriptor->PortDescriptors);
|
||||
free((char **)djFlangerDescriptor->PortNames);
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#ifdef WIN32
|
||||
#define _WINDOWS_DLL_EXPORT_ __declspec(dllexport)
|
||||
int bIsFirstTime = 1;
|
||||
void _init(); // forward declaration
|
||||
void __attribute__((constructor)) swh_init(); // forward declaration
|
||||
#else
|
||||
#define _WINDOWS_DLL_EXPORT_
|
||||
#endif
|
||||
@@ -130,7 +130,7 @@ const LADSPA_Descriptor *ladspa_descriptor(unsigned long index) {
|
||||
|
||||
#ifdef WIN32
|
||||
if (bIsFirstTime) {
|
||||
_init();
|
||||
swh_init();
|
||||
bIsFirstTime = 0;
|
||||
}
|
||||
#endif
|
||||
@@ -776,7 +776,7 @@ static void runAddingDysonCompress(LADSPA_Handle instance, unsigned long sample_
|
||||
plugin_data->extra_maxlevel = extra_maxlevel;
|
||||
}
|
||||
|
||||
void _init() {
|
||||
void __attribute__((constructor)) swh_init() {
|
||||
char **port_names;
|
||||
LADSPA_PortDescriptor *port_descriptors;
|
||||
LADSPA_PortRangeHint *port_range_hints;
|
||||
@@ -885,7 +885,7 @@ void _init() {
|
||||
}
|
||||
}
|
||||
|
||||
void _fini() {
|
||||
void __attribute__((destructor)) swh_fini() {
|
||||
if (dysonCompressDescriptor) {
|
||||
free((LADSPA_PortDescriptor *)dysonCompressDescriptor->PortDescriptors);
|
||||
free((char **)dysonCompressDescriptor->PortNames);
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#ifdef WIN32
|
||||
#define _WINDOWS_DLL_EXPORT_ __declspec(dllexport)
|
||||
int bIsFirstTime = 1;
|
||||
void _init(); // forward declaration
|
||||
void __attribute__((constructor)) swh_init(); // forward declaration
|
||||
#else
|
||||
#define _WINDOWS_DLL_EXPORT_
|
||||
#endif
|
||||
@@ -57,7 +57,7 @@ const LADSPA_Descriptor *ladspa_descriptor(unsigned long index) {
|
||||
|
||||
#ifdef WIN32
|
||||
if (bIsFirstTime) {
|
||||
_init();
|
||||
swh_init();
|
||||
bIsFirstTime = 0;
|
||||
}
|
||||
#endif
|
||||
@@ -299,7 +299,7 @@ static void runAddingFadDelay(LADSPA_Handle instance, unsigned long sample_count
|
||||
plugin_data->last_in = last_in;
|
||||
}
|
||||
|
||||
void _init() {
|
||||
void __attribute__((constructor)) swh_init() {
|
||||
char **port_names;
|
||||
LADSPA_PortDescriptor *port_descriptors;
|
||||
LADSPA_PortRangeHint *port_range_hints;
|
||||
@@ -388,7 +388,7 @@ void _init() {
|
||||
}
|
||||
}
|
||||
|
||||
void _fini() {
|
||||
void __attribute__((destructor)) swh_fini() {
|
||||
if (fadDelayDescriptor) {
|
||||
free((LADSPA_PortDescriptor *)fadDelayDescriptor->PortDescriptors);
|
||||
free((char **)fadDelayDescriptor->PortNames);
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#ifdef WIN32
|
||||
#define _WINDOWS_DLL_EXPORT_ __declspec(dllexport)
|
||||
int bIsFirstTime = 1;
|
||||
void _init(); // forward declaration
|
||||
void __attribute__((constructor)) swh_init(); // forward declaration
|
||||
#else
|
||||
#define _WINDOWS_DLL_EXPORT_
|
||||
#endif
|
||||
@@ -81,7 +81,7 @@ const LADSPA_Descriptor *ladspa_descriptor(unsigned long index) {
|
||||
|
||||
#ifdef WIN32
|
||||
if (bIsFirstTime) {
|
||||
_init();
|
||||
swh_init();
|
||||
bIsFirstTime = 0;
|
||||
}
|
||||
#endif
|
||||
@@ -573,7 +573,7 @@ static void runAddingFastLookaheadLimiter(LADSPA_Handle instance, unsigned long
|
||||
*(plugin_data->latency) = delay;
|
||||
}
|
||||
|
||||
void _init() {
|
||||
void __attribute__((constructor)) swh_init() {
|
||||
char **port_names;
|
||||
LADSPA_PortDescriptor *port_descriptors;
|
||||
LADSPA_PortRangeHint *port_range_hints;
|
||||
@@ -703,7 +703,7 @@ void _init() {
|
||||
}
|
||||
}
|
||||
|
||||
void _fini() {
|
||||
void __attribute__((destructor)) swh_fini() {
|
||||
if (fastLookaheadLimiterDescriptor) {
|
||||
free((LADSPA_PortDescriptor *)fastLookaheadLimiterDescriptor->PortDescriptors);
|
||||
free((char **)fastLookaheadLimiterDescriptor->PortNames);
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#ifdef WIN32
|
||||
#define _WINDOWS_DLL_EXPORT_ __declspec(dllexport)
|
||||
int bIsFirstTime = 1;
|
||||
void _init(); // forward declaration
|
||||
void __attribute__((constructor)) swh_init(); // forward declaration
|
||||
#else
|
||||
#define _WINDOWS_DLL_EXPORT_
|
||||
#endif
|
||||
@@ -63,7 +63,7 @@ const LADSPA_Descriptor *ladspa_descriptor(unsigned long index) {
|
||||
|
||||
#ifdef WIN32
|
||||
if (bIsFirstTime) {
|
||||
_init();
|
||||
swh_init();
|
||||
bIsFirstTime = 0;
|
||||
}
|
||||
#endif
|
||||
@@ -435,7 +435,7 @@ static void runAddingFlanger(LADSPA_Handle instance, unsigned long sample_count)
|
||||
plugin_data->old_d_base = new_d_base;
|
||||
}
|
||||
|
||||
void _init() {
|
||||
void __attribute__((constructor)) swh_init() {
|
||||
char **port_names;
|
||||
LADSPA_PortDescriptor *port_descriptors;
|
||||
LADSPA_PortRangeHint *port_range_hints;
|
||||
@@ -544,7 +544,7 @@ void _init() {
|
||||
}
|
||||
}
|
||||
|
||||
void _fini() {
|
||||
void __attribute__((destructor)) swh_fini() {
|
||||
if (flangerDescriptor) {
|
||||
free((LADSPA_PortDescriptor *)flangerDescriptor->PortDescriptors);
|
||||
free((char **)flangerDescriptor->PortNames);
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#ifdef WIN32
|
||||
#define _WINDOWS_DLL_EXPORT_ __declspec(dllexport)
|
||||
int bIsFirstTime = 1;
|
||||
void _init(); // forward declaration
|
||||
void __attribute__((constructor)) swh_init(); // forward declaration
|
||||
#else
|
||||
#define _WINDOWS_DLL_EXPORT_
|
||||
#endif
|
||||
@@ -46,7 +46,7 @@ const LADSPA_Descriptor *ladspa_descriptor(unsigned long index) {
|
||||
|
||||
#ifdef WIN32
|
||||
if (bIsFirstTime) {
|
||||
_init();
|
||||
swh_init();
|
||||
bIsFirstTime = 0;
|
||||
}
|
||||
#endif
|
||||
@@ -166,7 +166,7 @@ static void runAddingFoldover(LADSPA_Handle instance, unsigned long sample_count
|
||||
}
|
||||
}
|
||||
|
||||
void _init() {
|
||||
void __attribute__((constructor)) swh_init() {
|
||||
char **port_names;
|
||||
LADSPA_PortDescriptor *port_descriptors;
|
||||
LADSPA_PortRangeHint *port_range_hints;
|
||||
@@ -255,7 +255,7 @@ void _init() {
|
||||
}
|
||||
}
|
||||
|
||||
void _fini() {
|
||||
void __attribute__((destructor)) swh_fini() {
|
||||
if (foldoverDescriptor) {
|
||||
free((LADSPA_PortDescriptor *)foldoverDescriptor->PortDescriptors);
|
||||
free((char **)foldoverDescriptor->PortNames);
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#ifdef WIN32
|
||||
#define _WINDOWS_DLL_EXPORT_ __declspec(dllexport)
|
||||
int bIsFirstTime = 1;
|
||||
void _init(); // forward declaration
|
||||
void __attribute__((constructor)) swh_init(); // forward declaration
|
||||
#else
|
||||
#define _WINDOWS_DLL_EXPORT_
|
||||
#endif
|
||||
@@ -44,7 +44,7 @@ const LADSPA_Descriptor *ladspa_descriptor(unsigned long index) {
|
||||
|
||||
#ifdef WIN32
|
||||
if (bIsFirstTime) {
|
||||
_init();
|
||||
swh_init();
|
||||
bIsFirstTime = 0;
|
||||
}
|
||||
#endif
|
||||
@@ -155,7 +155,7 @@ static void runAddingFoverdrive(LADSPA_Handle instance, unsigned long sample_cou
|
||||
}
|
||||
}
|
||||
|
||||
void _init() {
|
||||
void __attribute__((constructor)) swh_init() {
|
||||
char **port_names;
|
||||
LADSPA_PortDescriptor *port_descriptors;
|
||||
LADSPA_PortRangeHint *port_range_hints;
|
||||
@@ -234,7 +234,7 @@ void _init() {
|
||||
}
|
||||
}
|
||||
|
||||
void _fini() {
|
||||
void __attribute__((destructor)) swh_fini() {
|
||||
if (foverdriveDescriptor) {
|
||||
free((LADSPA_PortDescriptor *)foverdriveDescriptor->PortDescriptors);
|
||||
free((char **)foverdriveDescriptor->PortNames);
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#ifdef WIN32
|
||||
#define _WINDOWS_DLL_EXPORT_ __declspec(dllexport)
|
||||
int bIsFirstTime = 1;
|
||||
void _init(); // forward declaration
|
||||
void __attribute__((constructor)) swh_init(); // forward declaration
|
||||
#else
|
||||
#define _WINDOWS_DLL_EXPORT_
|
||||
#endif
|
||||
@@ -52,7 +52,7 @@ const LADSPA_Descriptor *ladspa_descriptor(unsigned long index) {
|
||||
|
||||
#ifdef WIN32
|
||||
if (bIsFirstTime) {
|
||||
_init();
|
||||
swh_init();
|
||||
bIsFirstTime = 0;
|
||||
}
|
||||
#endif
|
||||
@@ -240,7 +240,7 @@ static void runAddingFreqTracker(LADSPA_Handle instance, unsigned long sample_co
|
||||
plugin_data->cross_time = cross_time;
|
||||
}
|
||||
|
||||
void _init() {
|
||||
void __attribute__((constructor)) swh_init() {
|
||||
char **port_names;
|
||||
LADSPA_PortDescriptor *port_descriptors;
|
||||
LADSPA_PortRangeHint *port_range_hints;
|
||||
@@ -319,7 +319,7 @@ void _init() {
|
||||
}
|
||||
}
|
||||
|
||||
void _fini() {
|
||||
void __attribute__((destructor)) swh_fini() {
|
||||
if (freqTrackerDescriptor) {
|
||||
free((LADSPA_PortDescriptor *)freqTrackerDescriptor->PortDescriptors);
|
||||
free((char **)freqTrackerDescriptor->PortNames);
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#ifdef WIN32
|
||||
#define _WINDOWS_DLL_EXPORT_ __declspec(dllexport)
|
||||
int bIsFirstTime = 1;
|
||||
void _init(); // forward declaration
|
||||
void __attribute__((constructor)) swh_init(); // forward declaration
|
||||
#else
|
||||
#define _WINDOWS_DLL_EXPORT_
|
||||
#endif
|
||||
@@ -76,7 +76,7 @@ const LADSPA_Descriptor *ladspa_descriptor(unsigned long index) {
|
||||
|
||||
#ifdef WIN32
|
||||
if (bIsFirstTime) {
|
||||
_init();
|
||||
swh_init();
|
||||
bIsFirstTime = 0;
|
||||
}
|
||||
#endif
|
||||
@@ -433,7 +433,7 @@ static void runAddingGate(LADSPA_Handle instance, unsigned long sample_count) {
|
||||
plugin_data->hold_count = hold_count;
|
||||
}
|
||||
|
||||
void _init() {
|
||||
void __attribute__((constructor)) swh_init() {
|
||||
char **port_names;
|
||||
LADSPA_PortDescriptor *port_descriptors;
|
||||
LADSPA_PortRangeHint *port_range_hints;
|
||||
@@ -582,7 +582,7 @@ void _init() {
|
||||
}
|
||||
}
|
||||
|
||||
void _fini() {
|
||||
void __attribute__((destructor)) swh_fini() {
|
||||
if (gateDescriptor) {
|
||||
free((LADSPA_PortDescriptor *)gateDescriptor->PortDescriptors);
|
||||
free((char **)gateDescriptor->PortNames);
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#ifdef WIN32
|
||||
#define _WINDOWS_DLL_EXPORT_ __declspec(dllexport)
|
||||
int bIsFirstTime = 1;
|
||||
void _init(); // forward declaration
|
||||
void __attribute__((constructor)) swh_init(); // forward declaration
|
||||
#else
|
||||
#define _WINDOWS_DLL_EXPORT_
|
||||
#endif
|
||||
@@ -77,7 +77,7 @@ const LADSPA_Descriptor *ladspa_descriptor(unsigned long index) {
|
||||
|
||||
#ifdef WIN32
|
||||
if (bIsFirstTime) {
|
||||
_init();
|
||||
swh_init();
|
||||
bIsFirstTime = 0;
|
||||
}
|
||||
#endif
|
||||
@@ -501,7 +501,7 @@ static void runAddingGiantFlange(LADSPA_Handle instance, unsigned long sample_co
|
||||
plugin_data->buffer_pos = buffer_pos;
|
||||
}
|
||||
|
||||
void _init() {
|
||||
void __attribute__((constructor)) swh_init() {
|
||||
char **port_names;
|
||||
LADSPA_PortDescriptor *port_descriptors;
|
||||
LADSPA_PortRangeHint *port_range_hints;
|
||||
@@ -637,7 +637,7 @@ void _init() {
|
||||
}
|
||||
}
|
||||
|
||||
void _fini() {
|
||||
void __attribute__((destructor)) swh_fini() {
|
||||
if (giantFlangeDescriptor) {
|
||||
free((LADSPA_PortDescriptor *)giantFlangeDescriptor->PortDescriptors);
|
||||
free((char **)giantFlangeDescriptor->PortNames);
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#ifdef WIN32
|
||||
#define _WINDOWS_DLL_EXPORT_ __declspec(dllexport)
|
||||
int bIsFirstTime = 1;
|
||||
void _init(); // forward declaration
|
||||
void __attribute__((constructor)) swh_init(); // forward declaration
|
||||
#else
|
||||
#define _WINDOWS_DLL_EXPORT_
|
||||
#endif
|
||||
@@ -105,7 +105,7 @@ const LADSPA_Descriptor *ladspa_descriptor(unsigned long index) {
|
||||
|
||||
#ifdef WIN32
|
||||
if (bIsFirstTime) {
|
||||
_init();
|
||||
swh_init();
|
||||
bIsFirstTime = 0;
|
||||
}
|
||||
#endif
|
||||
@@ -608,7 +608,7 @@ static void runAddingGong(LADSPA_Handle instance, unsigned long sample_count) {
|
||||
}
|
||||
}
|
||||
|
||||
void _init() {
|
||||
void __attribute__((constructor)) swh_init() {
|
||||
char **port_names;
|
||||
LADSPA_PortDescriptor *port_descriptors;
|
||||
LADSPA_PortRangeHint *port_range_hints;
|
||||
@@ -947,7 +947,7 @@ void _init() {
|
||||
}
|
||||
}
|
||||
|
||||
void _fini() {
|
||||
void __attribute__((destructor)) swh_fini() {
|
||||
if (gongDescriptor) {
|
||||
free((LADSPA_PortDescriptor *)gongDescriptor->PortDescriptors);
|
||||
free((char **)gongDescriptor->PortNames);
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#ifdef WIN32
|
||||
#define _WINDOWS_DLL_EXPORT_ __declspec(dllexport)
|
||||
int bIsFirstTime = 1;
|
||||
void _init(); // forward declaration
|
||||
void __attribute__((constructor)) swh_init(); // forward declaration
|
||||
#else
|
||||
#define _WINDOWS_DLL_EXPORT_
|
||||
#endif
|
||||
@@ -58,7 +58,7 @@ const LADSPA_Descriptor *ladspa_descriptor(unsigned long index) {
|
||||
|
||||
#ifdef WIN32
|
||||
if (bIsFirstTime) {
|
||||
_init();
|
||||
swh_init();
|
||||
bIsFirstTime = 0;
|
||||
}
|
||||
#endif
|
||||
@@ -301,7 +301,7 @@ static void runAddingGongBeater(LADSPA_Handle instance, unsigned long sample_cou
|
||||
plugin_data->imp_level = imp_level;
|
||||
}
|
||||
|
||||
void _init() {
|
||||
void __attribute__((constructor)) swh_init() {
|
||||
char **port_names;
|
||||
LADSPA_PortDescriptor *port_descriptors;
|
||||
LADSPA_PortRangeHint *port_range_hints;
|
||||
@@ -400,7 +400,7 @@ void _init() {
|
||||
}
|
||||
}
|
||||
|
||||
void _fini() {
|
||||
void __attribute__((destructor)) swh_fini() {
|
||||
if (gongBeaterDescriptor) {
|
||||
free((LADSPA_PortDescriptor *)gongBeaterDescriptor->PortDescriptors);
|
||||
free((char **)gongBeaterDescriptor->PortNames);
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#ifdef WIN32
|
||||
#define _WINDOWS_DLL_EXPORT_ __declspec(dllexport)
|
||||
int bIsFirstTime = 1;
|
||||
void _init(); // forward declaration
|
||||
void __attribute__((constructor)) swh_init(); // forward declaration
|
||||
#else
|
||||
#define _WINDOWS_DLL_EXPORT_
|
||||
#endif
|
||||
@@ -70,7 +70,7 @@ const LADSPA_Descriptor *ladspa_descriptor(unsigned long index) {
|
||||
|
||||
#ifdef WIN32
|
||||
if (bIsFirstTime) {
|
||||
_init();
|
||||
swh_init();
|
||||
bIsFirstTime = 0;
|
||||
}
|
||||
#endif
|
||||
@@ -387,7 +387,7 @@ static void runAddingGsm(LADSPA_Handle instance, unsigned long sample_count) {
|
||||
*(plugin_data->latency) = 160 * resamp;
|
||||
}
|
||||
|
||||
void _init() {
|
||||
void __attribute__((constructor)) swh_init() {
|
||||
char **port_names;
|
||||
LADSPA_PortDescriptor *port_descriptors;
|
||||
LADSPA_PortRangeHint *port_range_hints;
|
||||
@@ -493,7 +493,7 @@ void _init() {
|
||||
}
|
||||
}
|
||||
|
||||
void _fini() {
|
||||
void __attribute__((destructor)) swh_fini() {
|
||||
if (gsmDescriptor) {
|
||||
free((LADSPA_PortDescriptor *)gsmDescriptor->PortDescriptors);
|
||||
free((char **)gsmDescriptor->PortNames);
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#ifdef WIN32
|
||||
#define _WINDOWS_DLL_EXPORT_ __declspec(dllexport)
|
||||
int bIsFirstTime = 1;
|
||||
void _init(); // forward declaration
|
||||
void __attribute__((constructor)) swh_init(); // forward declaration
|
||||
#else
|
||||
#define _WINDOWS_DLL_EXPORT_
|
||||
#endif
|
||||
@@ -74,7 +74,7 @@ const LADSPA_Descriptor *ladspa_descriptor(unsigned long index) {
|
||||
|
||||
#ifdef WIN32
|
||||
if (bIsFirstTime) {
|
||||
_init();
|
||||
swh_init();
|
||||
bIsFirstTime = 0;
|
||||
}
|
||||
#endif
|
||||
@@ -283,7 +283,7 @@ static void runAddingGverb(LADSPA_Handle instance, unsigned long sample_count) {
|
||||
}
|
||||
}
|
||||
|
||||
void _init() {
|
||||
void __attribute__((constructor)) swh_init() {
|
||||
char **port_names;
|
||||
LADSPA_PortDescriptor *port_descriptors;
|
||||
LADSPA_PortRangeHint *port_range_hints;
|
||||
@@ -429,7 +429,7 @@ void _init() {
|
||||
}
|
||||
}
|
||||
|
||||
void _fini() {
|
||||
void __attribute__((destructor)) swh_fini() {
|
||||
if (gverbDescriptor) {
|
||||
free((LADSPA_PortDescriptor *)gverbDescriptor->PortDescriptors);
|
||||
free((char **)gverbDescriptor->PortNames);
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#ifdef WIN32
|
||||
#define _WINDOWS_DLL_EXPORT_ __declspec(dllexport)
|
||||
int bIsFirstTime = 1;
|
||||
void _init(); // forward declaration
|
||||
void __attribute__((constructor)) swh_init(); // forward declaration
|
||||
#else
|
||||
#define _WINDOWS_DLL_EXPORT_
|
||||
#endif
|
||||
@@ -52,7 +52,7 @@ const LADSPA_Descriptor *ladspa_descriptor(unsigned long index) {
|
||||
|
||||
#ifdef WIN32
|
||||
if (bIsFirstTime) {
|
||||
_init();
|
||||
swh_init();
|
||||
bIsFirstTime = 0;
|
||||
}
|
||||
#endif
|
||||
@@ -187,7 +187,7 @@ static void runAddingHardLimiter(LADSPA_Handle instance, unsigned long sample_co
|
||||
}
|
||||
}
|
||||
|
||||
void _init() {
|
||||
void __attribute__((constructor)) swh_init() {
|
||||
char **port_names;
|
||||
LADSPA_PortDescriptor *port_descriptors;
|
||||
LADSPA_PortRangeHint *port_range_hints;
|
||||
@@ -286,7 +286,7 @@ void _init() {
|
||||
}
|
||||
}
|
||||
|
||||
void _fini() {
|
||||
void __attribute__((destructor)) swh_fini() {
|
||||
if (hardLimiterDescriptor) {
|
||||
free((LADSPA_PortDescriptor *)hardLimiterDescriptor->PortDescriptors);
|
||||
free((char **)hardLimiterDescriptor->PortNames);
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#ifdef WIN32
|
||||
#define _WINDOWS_DLL_EXPORT_ __declspec(dllexport)
|
||||
int bIsFirstTime = 1;
|
||||
void _init(); // forward declaration
|
||||
void __attribute__((constructor)) swh_init(); // forward declaration
|
||||
#else
|
||||
#define _WINDOWS_DLL_EXPORT_
|
||||
#endif
|
||||
@@ -97,7 +97,7 @@ const LADSPA_Descriptor *ladspa_descriptor(unsigned long index) {
|
||||
|
||||
#ifdef WIN32
|
||||
if (bIsFirstTime) {
|
||||
_init();
|
||||
swh_init();
|
||||
bIsFirstTime = 0;
|
||||
}
|
||||
#endif
|
||||
@@ -367,7 +367,7 @@ static void runAddingHarmonicGen(LADSPA_Handle instance, unsigned long sample_co
|
||||
plugin_data->otm1 = otm1;
|
||||
}
|
||||
|
||||
void _init() {
|
||||
void __attribute__((constructor)) swh_init() {
|
||||
char **port_names;
|
||||
LADSPA_PortDescriptor *port_descriptors;
|
||||
LADSPA_PortRangeHint *port_range_hints;
|
||||
@@ -542,7 +542,7 @@ void _init() {
|
||||
}
|
||||
}
|
||||
|
||||
void _fini() {
|
||||
void __attribute__((destructor)) swh_fini() {
|
||||
if (harmonicGenDescriptor) {
|
||||
free((LADSPA_PortDescriptor *)harmonicGenDescriptor->PortDescriptors);
|
||||
free((char **)harmonicGenDescriptor->PortNames);
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#ifdef WIN32
|
||||
#define _WINDOWS_DLL_EXPORT_ __declspec(dllexport)
|
||||
int bIsFirstTime = 1;
|
||||
void _init(); // forward declaration
|
||||
void __attribute__((constructor)) swh_init(); // forward declaration
|
||||
#else
|
||||
#define _WINDOWS_DLL_EXPORT_
|
||||
#endif
|
||||
@@ -300,7 +300,7 @@ const LADSPA_Descriptor *ladspa_descriptor(unsigned long index) {
|
||||
|
||||
#ifdef WIN32
|
||||
if (bIsFirstTime) {
|
||||
_init();
|
||||
swh_init();
|
||||
bIsFirstTime = 0;
|
||||
}
|
||||
#endif
|
||||
@@ -1403,7 +1403,7 @@ static void runAddingHermesFilter(LADSPA_Handle instance, unsigned long sample_c
|
||||
plugin_data->lfo2_phase = lfo2_phase;
|
||||
}
|
||||
|
||||
void _init() {
|
||||
void __attribute__((constructor)) swh_init() {
|
||||
char **port_names;
|
||||
LADSPA_PortDescriptor *port_descriptors;
|
||||
LADSPA_PortRangeHint *port_range_hints;
|
||||
@@ -1998,7 +1998,7 @@ void _init() {
|
||||
}
|
||||
}
|
||||
|
||||
void _fini() {
|
||||
void __attribute__((destructor)) swh_fini() {
|
||||
if (hermesFilterDescriptor) {
|
||||
free((LADSPA_PortDescriptor *)hermesFilterDescriptor->PortDescriptors);
|
||||
free((char **)hermesFilterDescriptor->PortNames);
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#ifdef WIN32
|
||||
#define _WINDOWS_DLL_EXPORT_ __declspec(dllexport)
|
||||
int bIsFirstTime = 1;
|
||||
void _init(); // forward declaration
|
||||
void __attribute__((constructor)) swh_init(); // forward declaration
|
||||
#else
|
||||
#define _WINDOWS_DLL_EXPORT_
|
||||
#endif
|
||||
@@ -52,7 +52,7 @@ const LADSPA_Descriptor *ladspa_descriptor(unsigned long index) {
|
||||
|
||||
#ifdef WIN32
|
||||
if (bIsFirstTime) {
|
||||
_init();
|
||||
swh_init();
|
||||
bIsFirstTime = 0;
|
||||
}
|
||||
#endif
|
||||
@@ -189,7 +189,7 @@ static void runAddingHighpass_iir(LADSPA_Handle instance, unsigned long sample_c
|
||||
iir_process_buffer_ns_5(iirf, gt, input, output, sample_count,RUN_ADDING);
|
||||
}
|
||||
|
||||
void _init() {
|
||||
void __attribute__((constructor)) swh_init() {
|
||||
char **port_names;
|
||||
LADSPA_PortDescriptor *port_descriptors;
|
||||
LADSPA_PortRangeHint *port_range_hints;
|
||||
@@ -278,7 +278,7 @@ void _init() {
|
||||
}
|
||||
}
|
||||
|
||||
void _fini() {
|
||||
void __attribute__((destructor)) swh_fini() {
|
||||
if (highpass_iirDescriptor) {
|
||||
free((LADSPA_PortDescriptor *)highpass_iirDescriptor->PortDescriptors);
|
||||
free((char **)highpass_iirDescriptor->PortNames);
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#ifdef WIN32
|
||||
#define _WINDOWS_DLL_EXPORT_ __declspec(dllexport)
|
||||
int bIsFirstTime = 1;
|
||||
void _init(); // forward declaration
|
||||
void __attribute__((constructor)) swh_init(); // forward declaration
|
||||
#else
|
||||
#define _WINDOWS_DLL_EXPORT_
|
||||
#endif
|
||||
@@ -83,7 +83,7 @@ const LADSPA_Descriptor *ladspa_descriptor(unsigned long index) {
|
||||
|
||||
#ifdef WIN32
|
||||
if (bIsFirstTime) {
|
||||
_init();
|
||||
swh_init();
|
||||
bIsFirstTime = 0;
|
||||
}
|
||||
#endif
|
||||
@@ -233,7 +233,7 @@ static void runAddingHilbert(LADSPA_Handle instance, unsigned long sample_count)
|
||||
*(plugin_data->latency) = 99;
|
||||
}
|
||||
|
||||
void _init() {
|
||||
void __attribute__((constructor)) swh_init() {
|
||||
char **port_names;
|
||||
LADSPA_PortDescriptor *port_descriptors;
|
||||
LADSPA_PortRangeHint *port_range_hints;
|
||||
@@ -316,7 +316,7 @@ void _init() {
|
||||
}
|
||||
}
|
||||
|
||||
void _fini() {
|
||||
void __attribute__((destructor)) swh_fini() {
|
||||
if (hilbertDescriptor) {
|
||||
free((LADSPA_PortDescriptor *)hilbertDescriptor->PortDescriptors);
|
||||
free((char **)hilbertDescriptor->PortNames);
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#ifdef WIN32
|
||||
#define _WINDOWS_DLL_EXPORT_ __declspec(dllexport)
|
||||
int bIsFirstTime = 1;
|
||||
void _init(); // forward declaration
|
||||
void __attribute__((constructor)) swh_init(); // forward declaration
|
||||
#else
|
||||
#define _WINDOWS_DLL_EXPORT_
|
||||
#endif
|
||||
@@ -99,8 +99,10 @@ inline void impulse2freq(int id, float *imp, unsigned int length, fftw_real *out
|
||||
for (i=0; i<length; i++) {
|
||||
impulse_time[i] = imp[i];
|
||||
}
|
||||
for (; i<fftl; i++) {
|
||||
impulse_time[i] = 0.0f;
|
||||
|
||||
int last = i;
|
||||
for (i = 0; i<fftl; i++) {
|
||||
if (i >=last) impulse_time[i] = 0.0f;
|
||||
}
|
||||
#ifdef FFTW3
|
||||
fftwf_execute(tmp_plan);
|
||||
@@ -143,7 +145,7 @@ const LADSPA_Descriptor *ladspa_descriptor(unsigned long index) {
|
||||
|
||||
#ifdef WIN32
|
||||
if (bIsFirstTime) {
|
||||
_init();
|
||||
swh_init();
|
||||
bIsFirstTime = 0;
|
||||
}
|
||||
#endif
|
||||
@@ -520,7 +522,7 @@ static void runAddingImp(LADSPA_Handle instance, unsigned long sample_count) {
|
||||
*(plugin_data->latency) = SEG_LENGTH;
|
||||
}
|
||||
|
||||
void _init() {
|
||||
void __attribute__((constructor)) swh_init() {
|
||||
char **port_names;
|
||||
LADSPA_PortDescriptor *port_descriptors;
|
||||
LADSPA_PortRangeHint *port_range_hints;
|
||||
@@ -626,7 +628,7 @@ void _init() {
|
||||
}
|
||||
}
|
||||
|
||||
void _fini() {
|
||||
void __attribute__((destructor)) swh_fini() {
|
||||
if (impDescriptor) {
|
||||
free((LADSPA_PortDescriptor *)impDescriptor->PortDescriptors);
|
||||
free((char **)impDescriptor->PortNames);
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#ifdef WIN32
|
||||
#define _WINDOWS_DLL_EXPORT_ __declspec(dllexport)
|
||||
int bIsFirstTime = 1;
|
||||
void _init(); // forward declaration
|
||||
void __attribute__((constructor)) swh_init(); // forward declaration
|
||||
#else
|
||||
#define _WINDOWS_DLL_EXPORT_
|
||||
#endif
|
||||
@@ -49,7 +49,7 @@ const LADSPA_Descriptor *ladspa_descriptor(unsigned long index) {
|
||||
|
||||
#ifdef WIN32
|
||||
if (bIsFirstTime) {
|
||||
_init();
|
||||
swh_init();
|
||||
bIsFirstTime = 0;
|
||||
}
|
||||
#endif
|
||||
@@ -186,7 +186,7 @@ static void runAddingImpulse_fc(LADSPA_Handle instance, unsigned long sample_cou
|
||||
plugin_data->phase = phase;
|
||||
}
|
||||
|
||||
void _init() {
|
||||
void __attribute__((constructor)) swh_init() {
|
||||
char **port_names;
|
||||
LADSPA_PortDescriptor *port_descriptors;
|
||||
LADSPA_PortRangeHint *port_range_hints;
|
||||
@@ -257,7 +257,7 @@ void _init() {
|
||||
}
|
||||
}
|
||||
|
||||
void _fini() {
|
||||
void __attribute__((destructor)) swh_fini() {
|
||||
if (impulse_fcDescriptor) {
|
||||
free((LADSPA_PortDescriptor *)impulse_fcDescriptor->PortDescriptors);
|
||||
free((char **)impulse_fcDescriptor->PortNames);
|
||||
|
||||
@@ -24,7 +24,11 @@
|
||||
#include "impulses/20-matchless-chieftain-sm57.h"
|
||||
#include "impulses/21-matchless-chieftain-sm57-off.h"
|
||||
|
||||
#ifdef __clang__
|
||||
void mk_imps(fftw_real **impulse_freq)
|
||||
#else
|
||||
inline void mk_imps(fftw_real **impulse_freq)
|
||||
#endif
|
||||
{
|
||||
int c = 0;
|
||||
MK_IMP(unit);
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#ifdef WIN32
|
||||
#define _WINDOWS_DLL_EXPORT_ __declspec(dllexport)
|
||||
int bIsFirstTime = 1;
|
||||
void _init(); // forward declaration
|
||||
void __attribute__((constructor)) swh_init(); // forward declaration
|
||||
#else
|
||||
#define _WINDOWS_DLL_EXPORT_
|
||||
#endif
|
||||
@@ -42,7 +42,7 @@ const LADSPA_Descriptor *ladspa_descriptor(unsigned long index) {
|
||||
|
||||
#ifdef WIN32
|
||||
if (bIsFirstTime) {
|
||||
_init();
|
||||
swh_init();
|
||||
bIsFirstTime = 0;
|
||||
}
|
||||
#endif
|
||||
@@ -138,7 +138,7 @@ static void runAddingInv(LADSPA_Handle instance, unsigned long sample_count) {
|
||||
}
|
||||
}
|
||||
|
||||
void _init() {
|
||||
void __attribute__((constructor)) swh_init() {
|
||||
char **port_names;
|
||||
LADSPA_PortDescriptor *port_descriptors;
|
||||
LADSPA_PortRangeHint *port_range_hints;
|
||||
@@ -207,7 +207,7 @@ void _init() {
|
||||
}
|
||||
}
|
||||
|
||||
void _fini() {
|
||||
void __attribute__((destructor)) swh_fini() {
|
||||
if (invDescriptor) {
|
||||
free((LADSPA_PortDescriptor *)invDescriptor->PortDescriptors);
|
||||
free((char **)invDescriptor->PortNames);
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#ifdef WIN32
|
||||
#define _WINDOWS_DLL_EXPORT_ __declspec(dllexport)
|
||||
int bIsFirstTime = 1;
|
||||
void _init(); // forward declaration
|
||||
void __attribute__((constructor)) swh_init(); // forward declaration
|
||||
#else
|
||||
#define _WINDOWS_DLL_EXPORT_
|
||||
#endif
|
||||
@@ -48,7 +48,7 @@ const LADSPA_Descriptor *ladspa_descriptor(unsigned long index) {
|
||||
|
||||
#ifdef WIN32
|
||||
if (bIsFirstTime) {
|
||||
_init();
|
||||
swh_init();
|
||||
bIsFirstTime = 0;
|
||||
}
|
||||
#endif
|
||||
@@ -181,7 +181,7 @@ static void runAddingKaraoke(LADSPA_Handle instance, unsigned long sample_count)
|
||||
}
|
||||
}
|
||||
|
||||
void _init() {
|
||||
void __attribute__((constructor)) swh_init() {
|
||||
char **port_names;
|
||||
LADSPA_PortDescriptor *port_descriptors;
|
||||
LADSPA_PortRangeHint *port_range_hints;
|
||||
@@ -274,7 +274,7 @@ void _init() {
|
||||
}
|
||||
}
|
||||
|
||||
void _fini() {
|
||||
void __attribute__((destructor)) swh_fini() {
|
||||
if (karaokeDescriptor) {
|
||||
free((LADSPA_PortDescriptor *)karaokeDescriptor->PortDescriptors);
|
||||
free((char **)karaokeDescriptor->PortNames);
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#ifdef WIN32
|
||||
#define _WINDOWS_DLL_EXPORT_ __declspec(dllexport)
|
||||
int bIsFirstTime = 1;
|
||||
void _init(); // forward declaration
|
||||
void __attribute__((constructor)) swh_init(); // forward declaration
|
||||
#else
|
||||
#define _WINDOWS_DLL_EXPORT_
|
||||
#endif
|
||||
@@ -50,7 +50,7 @@ const LADSPA_Descriptor *ladspa_descriptor(unsigned long index) {
|
||||
|
||||
#ifdef WIN32
|
||||
if (bIsFirstTime) {
|
||||
_init();
|
||||
swh_init();
|
||||
bIsFirstTime = 0;
|
||||
}
|
||||
#endif
|
||||
@@ -173,7 +173,7 @@ static void runAddingArtificialLatency(LADSPA_Handle instance, unsigned long sam
|
||||
*(plugin_data->latency) = (float)delay_fr;
|
||||
}
|
||||
|
||||
void _init() {
|
||||
void __attribute__((constructor)) swh_init() {
|
||||
char **port_names;
|
||||
LADSPA_PortDescriptor *port_descriptors;
|
||||
LADSPA_PortRangeHint *port_range_hints;
|
||||
@@ -259,7 +259,7 @@ void _init() {
|
||||
}
|
||||
}
|
||||
|
||||
void _fini() {
|
||||
void __attribute__((destructor)) swh_fini() {
|
||||
if (artificialLatencyDescriptor) {
|
||||
free((LADSPA_PortDescriptor *)artificialLatencyDescriptor->PortDescriptors);
|
||||
free((char **)artificialLatencyDescriptor->PortNames);
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#ifdef WIN32
|
||||
#define _WINDOWS_DLL_EXPORT_ __declspec(dllexport)
|
||||
int bIsFirstTime = 1;
|
||||
void _init(); // forward declaration
|
||||
void __attribute__((constructor)) swh_init(); // forward declaration
|
||||
#else
|
||||
#define _WINDOWS_DLL_EXPORT_
|
||||
#endif
|
||||
@@ -83,7 +83,7 @@ const LADSPA_Descriptor *ladspa_descriptor(unsigned long index) {
|
||||
|
||||
#ifdef WIN32
|
||||
if (bIsFirstTime) {
|
||||
_init();
|
||||
swh_init();
|
||||
bIsFirstTime = 0;
|
||||
}
|
||||
#endif
|
||||
@@ -540,7 +540,7 @@ static void runAddingLcrDelay(LADSPA_Handle instance, unsigned long sample_count
|
||||
plugin_data->buffer_pos = buffer_pos;
|
||||
}
|
||||
|
||||
void _init() {
|
||||
void __attribute__((constructor)) swh_init() {
|
||||
char **port_names;
|
||||
LADSPA_PortDescriptor *port_descriptors;
|
||||
LADSPA_PortRangeHint *port_range_hints;
|
||||
@@ -733,7 +733,7 @@ void _init() {
|
||||
}
|
||||
}
|
||||
|
||||
void _fini() {
|
||||
void __attribute__((destructor)) swh_fini() {
|
||||
if (lcrDelayDescriptor) {
|
||||
free((LADSPA_PortDescriptor *)lcrDelayDescriptor->PortDescriptors);
|
||||
free((char **)lcrDelayDescriptor->PortNames);
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#ifdef WIN32
|
||||
#define _WINDOWS_DLL_EXPORT_ __declspec(dllexport)
|
||||
int bIsFirstTime = 1;
|
||||
void _init(); // forward declaration
|
||||
void __attribute__((constructor)) swh_init(); // forward declaration
|
||||
#else
|
||||
#define _WINDOWS_DLL_EXPORT_
|
||||
#endif
|
||||
@@ -53,7 +53,7 @@ const LADSPA_Descriptor *ladspa_descriptor(unsigned long index) {
|
||||
|
||||
#ifdef WIN32
|
||||
if (bIsFirstTime) {
|
||||
_init();
|
||||
swh_init();
|
||||
bIsFirstTime = 0;
|
||||
}
|
||||
#endif
|
||||
@@ -191,7 +191,7 @@ static void runAddingLowpass_iir(LADSPA_Handle instance, unsigned long sample_co
|
||||
iir_process_buffer_ns_5(iirf, gt, input, output, sample_count,RUN_ADDING);
|
||||
}
|
||||
|
||||
void _init() {
|
||||
void __attribute__((constructor)) swh_init() {
|
||||
char **port_names;
|
||||
LADSPA_PortDescriptor *port_descriptors;
|
||||
LADSPA_PortRangeHint *port_range_hints;
|
||||
@@ -280,7 +280,7 @@ void _init() {
|
||||
}
|
||||
}
|
||||
|
||||
void _fini() {
|
||||
void __attribute__((destructor)) swh_fini() {
|
||||
if (lowpass_iirDescriptor) {
|
||||
free((LADSPA_PortDescriptor *)lowpass_iirDescriptor->PortDescriptors);
|
||||
free((char **)lowpass_iirDescriptor->PortNames);
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#ifdef WIN32
|
||||
#define _WINDOWS_DLL_EXPORT_ __declspec(dllexport)
|
||||
int bIsFirstTime = 1;
|
||||
void _init(); // forward declaration
|
||||
void __attribute__((constructor)) swh_init(); // forward declaration
|
||||
#else
|
||||
#define _WINDOWS_DLL_EXPORT_
|
||||
#endif
|
||||
@@ -54,7 +54,7 @@ const LADSPA_Descriptor *ladspa_descriptor(unsigned long index) {
|
||||
|
||||
#ifdef WIN32
|
||||
if (bIsFirstTime) {
|
||||
_init();
|
||||
swh_init();
|
||||
bIsFirstTime = 0;
|
||||
}
|
||||
#endif
|
||||
@@ -209,7 +209,7 @@ static void runAddingLsFilter(LADSPA_Handle instance, unsigned long sample_count
|
||||
}
|
||||
}
|
||||
|
||||
void _init() {
|
||||
void __attribute__((constructor)) swh_init() {
|
||||
char **port_names;
|
||||
LADSPA_PortDescriptor *port_descriptors;
|
||||
LADSPA_PortRangeHint *port_range_hints;
|
||||
@@ -308,7 +308,7 @@ void _init() {
|
||||
}
|
||||
}
|
||||
|
||||
void _fini() {
|
||||
void __attribute__((destructor)) swh_fini() {
|
||||
if (lsFilterDescriptor) {
|
||||
free((LADSPA_PortDescriptor *)lsFilterDescriptor->PortDescriptors);
|
||||
free((char **)lsFilterDescriptor->PortNames);
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#ifdef WIN32
|
||||
#define _WINDOWS_DLL_EXPORT_ __declspec(dllexport)
|
||||
int bIsFirstTime = 1;
|
||||
void _init(); // forward declaration
|
||||
void __attribute__((constructor)) swh_init(); // forward declaration
|
||||
#else
|
||||
#define _WINDOWS_DLL_EXPORT_
|
||||
#endif
|
||||
@@ -48,7 +48,7 @@ const LADSPA_Descriptor *ladspa_descriptor(unsigned long index) {
|
||||
|
||||
#ifdef WIN32
|
||||
if (bIsFirstTime) {
|
||||
_init();
|
||||
swh_init();
|
||||
bIsFirstTime = 0;
|
||||
}
|
||||
#endif
|
||||
@@ -173,7 +173,7 @@ static void runAddingMatrixMSSt(LADSPA_Handle instance, unsigned long sample_cou
|
||||
}
|
||||
}
|
||||
|
||||
void _init() {
|
||||
void __attribute__((constructor)) swh_init() {
|
||||
char **port_names;
|
||||
LADSPA_PortDescriptor *port_descriptors;
|
||||
LADSPA_PortRangeHint *port_range_hints;
|
||||
@@ -266,7 +266,7 @@ void _init() {
|
||||
}
|
||||
}
|
||||
|
||||
void _fini() {
|
||||
void __attribute__((destructor)) swh_fini() {
|
||||
if (matrixMSStDescriptor) {
|
||||
free((LADSPA_PortDescriptor *)matrixMSStDescriptor->PortDescriptors);
|
||||
free((char **)matrixMSStDescriptor->PortNames);
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#ifdef WIN32
|
||||
#define _WINDOWS_DLL_EXPORT_ __declspec(dllexport)
|
||||
int bIsFirstTime = 1;
|
||||
void _init(); // forward declaration
|
||||
void __attribute__((constructor)) swh_init(); // forward declaration
|
||||
#else
|
||||
#define _WINDOWS_DLL_EXPORT_
|
||||
#endif
|
||||
@@ -107,7 +107,7 @@ const LADSPA_Descriptor *ladspa_descriptor(unsigned long index) {
|
||||
|
||||
#ifdef WIN32
|
||||
if (bIsFirstTime) {
|
||||
_init();
|
||||
swh_init();
|
||||
bIsFirstTime = 0;
|
||||
}
|
||||
#endif
|
||||
@@ -331,7 +331,7 @@ static void runAddingMatrixSpatialiser(LADSPA_Handle instance, unsigned long sam
|
||||
plugin_data->current_s_gain = current_s_gain;
|
||||
}
|
||||
|
||||
void _init() {
|
||||
void __attribute__((constructor)) swh_init() {
|
||||
char **port_names;
|
||||
LADSPA_PortDescriptor *port_descriptors;
|
||||
LADSPA_PortRangeHint *port_range_hints;
|
||||
@@ -424,7 +424,7 @@ void _init() {
|
||||
}
|
||||
}
|
||||
|
||||
void _fini() {
|
||||
void __attribute__((destructor)) swh_fini() {
|
||||
if (matrixSpatialiserDescriptor) {
|
||||
free((LADSPA_PortDescriptor *)matrixSpatialiserDescriptor->PortDescriptors);
|
||||
free((char **)matrixSpatialiserDescriptor->PortNames);
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#ifdef WIN32
|
||||
#define _WINDOWS_DLL_EXPORT_ __declspec(dllexport)
|
||||
int bIsFirstTime = 1;
|
||||
void _init(); // forward declaration
|
||||
void __attribute__((constructor)) swh_init(); // forward declaration
|
||||
#else
|
||||
#define _WINDOWS_DLL_EXPORT_
|
||||
#endif
|
||||
@@ -46,7 +46,7 @@ const LADSPA_Descriptor *ladspa_descriptor(unsigned long index) {
|
||||
|
||||
#ifdef WIN32
|
||||
if (bIsFirstTime) {
|
||||
_init();
|
||||
swh_init();
|
||||
bIsFirstTime = 0;
|
||||
}
|
||||
#endif
|
||||
@@ -162,7 +162,7 @@ static void runAddingMatrixStMS(LADSPA_Handle instance, unsigned long sample_cou
|
||||
}
|
||||
}
|
||||
|
||||
void _init() {
|
||||
void __attribute__((constructor)) swh_init() {
|
||||
char **port_names;
|
||||
LADSPA_PortDescriptor *port_descriptors;
|
||||
LADSPA_PortRangeHint *port_range_hints;
|
||||
@@ -245,7 +245,7 @@ void _init() {
|
||||
}
|
||||
}
|
||||
|
||||
void _fini() {
|
||||
void __attribute__((destructor)) swh_fini() {
|
||||
if (matrixStMSDescriptor) {
|
||||
free((LADSPA_PortDescriptor *)matrixStMSDescriptor->PortDescriptors);
|
||||
free((char **)matrixStMSDescriptor->PortNames);
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#ifdef WIN32
|
||||
#define _WINDOWS_DLL_EXPORT_ __declspec(dllexport)
|
||||
int bIsFirstTime = 1;
|
||||
void _init(); // forward declaration
|
||||
void __attribute__((constructor)) swh_init(); // forward declaration
|
||||
#else
|
||||
#define _WINDOWS_DLL_EXPORT_
|
||||
#endif
|
||||
@@ -120,7 +120,7 @@ const LADSPA_Descriptor *ladspa_descriptor(unsigned long index) {
|
||||
|
||||
#ifdef WIN32
|
||||
if (bIsFirstTime) {
|
||||
_init();
|
||||
swh_init();
|
||||
bIsFirstTime = 0;
|
||||
}
|
||||
#endif
|
||||
@@ -659,7 +659,7 @@ static void runAddingMbeq(LADSPA_Handle instance, unsigned long sample_count) {
|
||||
*(plugin_data->latency) = fft_latency;
|
||||
}
|
||||
|
||||
void _init() {
|
||||
void __attribute__((constructor)) swh_init() {
|
||||
char **port_names;
|
||||
LADSPA_PortDescriptor *port_descriptors;
|
||||
LADSPA_PortRangeHint *port_range_hints;
|
||||
@@ -885,7 +885,7 @@ void _init() {
|
||||
}
|
||||
}
|
||||
|
||||
void _fini() {
|
||||
void __attribute__((destructor)) swh_fini() {
|
||||
if (mbeqDescriptor) {
|
||||
free((LADSPA_PortDescriptor *)mbeqDescriptor->PortDescriptors);
|
||||
free((char **)mbeqDescriptor->PortNames);
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#ifdef WIN32
|
||||
#define _WINDOWS_DLL_EXPORT_ __declspec(dllexport)
|
||||
int bIsFirstTime = 1;
|
||||
void _init(); // forward declaration
|
||||
void __attribute__((constructor)) swh_init(); // forward declaration
|
||||
#else
|
||||
#define _WINDOWS_DLL_EXPORT_
|
||||
#endif
|
||||
@@ -53,7 +53,7 @@ const LADSPA_Descriptor *ladspa_descriptor(unsigned long index) {
|
||||
|
||||
#ifdef WIN32
|
||||
if (bIsFirstTime) {
|
||||
_init();
|
||||
swh_init();
|
||||
bIsFirstTime = 0;
|
||||
}
|
||||
#endif
|
||||
@@ -229,7 +229,7 @@ static void runAddingModDelay(LADSPA_Handle instance, unsigned long sample_count
|
||||
plugin_data->write_ptr = write_ptr;
|
||||
}
|
||||
|
||||
void _init() {
|
||||
void __attribute__((constructor)) swh_init() {
|
||||
char **port_names;
|
||||
LADSPA_PortDescriptor *port_descriptors;
|
||||
LADSPA_PortRangeHint *port_range_hints;
|
||||
@@ -318,7 +318,7 @@ void _init() {
|
||||
}
|
||||
}
|
||||
|
||||
void _fini() {
|
||||
void __attribute__((destructor)) swh_fini() {
|
||||
if (modDelayDescriptor) {
|
||||
free((LADSPA_PortDescriptor *)modDelayDescriptor->PortDescriptors);
|
||||
free((char **)modDelayDescriptor->PortNames);
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#ifdef WIN32
|
||||
#define _WINDOWS_DLL_EXPORT_ __declspec(dllexport)
|
||||
int bIsFirstTime = 1;
|
||||
void _init(); // forward declaration
|
||||
void __attribute__((constructor)) swh_init(); // forward declaration
|
||||
#else
|
||||
#define _WINDOWS_DLL_EXPORT_
|
||||
#endif
|
||||
@@ -74,7 +74,7 @@ const LADSPA_Descriptor *ladspa_descriptor(unsigned long index) {
|
||||
|
||||
#ifdef WIN32
|
||||
if (bIsFirstTime) {
|
||||
_init();
|
||||
swh_init();
|
||||
bIsFirstTime = 0;
|
||||
}
|
||||
#endif
|
||||
@@ -527,7 +527,7 @@ static void runAddingMultivoiceChorus(LADSPA_Handle instance, unsigned long samp
|
||||
plugin_data->delay_pos = delay_pos;
|
||||
}
|
||||
|
||||
void _init() {
|
||||
void __attribute__((constructor)) swh_init() {
|
||||
char **port_names;
|
||||
LADSPA_PortDescriptor *port_descriptors;
|
||||
LADSPA_PortRangeHint *port_range_hints;
|
||||
@@ -656,7 +656,7 @@ void _init() {
|
||||
}
|
||||
}
|
||||
|
||||
void _fini() {
|
||||
void __attribute__((destructor)) swh_fini() {
|
||||
if (multivoiceChorusDescriptor) {
|
||||
free((LADSPA_PortDescriptor *)multivoiceChorusDescriptor->PortDescriptors);
|
||||
free((char **)multivoiceChorusDescriptor->PortNames);
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#ifdef WIN32
|
||||
#define _WINDOWS_DLL_EXPORT_ __declspec(dllexport)
|
||||
int bIsFirstTime = 1;
|
||||
void _init(); // forward declaration
|
||||
void __attribute__((constructor)) swh_init(); // forward declaration
|
||||
#else
|
||||
#define _WINDOWS_DLL_EXPORT_
|
||||
#endif
|
||||
@@ -58,7 +58,7 @@ const LADSPA_Descriptor *ladspa_descriptor(unsigned long index) {
|
||||
|
||||
#ifdef WIN32
|
||||
if (bIsFirstTime) {
|
||||
_init();
|
||||
swh_init();
|
||||
bIsFirstTime = 0;
|
||||
}
|
||||
#endif
|
||||
@@ -244,7 +244,7 @@ static void runAddingNotch_iir(LADSPA_Handle instance, unsigned long sample_coun
|
||||
iir_process_buffer_ns_5(iirf2, second, input, output, sample_count, 1); /* add to first buffer */
|
||||
}
|
||||
|
||||
void _init() {
|
||||
void __attribute__((constructor)) swh_init() {
|
||||
char **port_names;
|
||||
LADSPA_PortDescriptor *port_descriptors;
|
||||
LADSPA_PortRangeHint *port_range_hints;
|
||||
@@ -343,7 +343,7 @@ void _init() {
|
||||
}
|
||||
}
|
||||
|
||||
void _fini() {
|
||||
void __attribute__((destructor)) swh_fini() {
|
||||
if (notch_iirDescriptor) {
|
||||
free((LADSPA_PortDescriptor *)notch_iirDescriptor->PortDescriptors);
|
||||
free((char **)notch_iirDescriptor->PortNames);
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#ifdef WIN32
|
||||
#define _WINDOWS_DLL_EXPORT_ __declspec(dllexport)
|
||||
int bIsFirstTime = 1;
|
||||
void _init(); // forward declaration
|
||||
void __attribute__((constructor)) swh_init(); // forward declaration
|
||||
#else
|
||||
#define _WINDOWS_DLL_EXPORT_
|
||||
#endif
|
||||
@@ -175,7 +175,7 @@ const LADSPA_Descriptor *ladspa_descriptor(unsigned long index) {
|
||||
|
||||
#ifdef WIN32
|
||||
if (bIsFirstTime) {
|
||||
_init();
|
||||
swh_init();
|
||||
bIsFirstTime = 0;
|
||||
}
|
||||
#endif
|
||||
@@ -1030,7 +1030,7 @@ static void runAddingAutoPhaser(LADSPA_Handle instance, unsigned long sample_cou
|
||||
plugin_data->ym1 = ym1;
|
||||
}
|
||||
|
||||
void _init() {
|
||||
void __attribute__((constructor)) swh_init() {
|
||||
char **port_names;
|
||||
LADSPA_PortDescriptor *port_descriptors;
|
||||
LADSPA_PortRangeHint *port_range_hints;
|
||||
@@ -1377,7 +1377,7 @@ void _init() {
|
||||
}
|
||||
}
|
||||
|
||||
void _fini() {
|
||||
void __attribute__((destructor)) swh_fini() {
|
||||
if (lfoPhaserDescriptor) {
|
||||
free((LADSPA_PortDescriptor *)lfoPhaserDescriptor->PortDescriptors);
|
||||
free((char **)lfoPhaserDescriptor->PortNames);
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#ifdef WIN32
|
||||
#define _WINDOWS_DLL_EXPORT_ __declspec(dllexport)
|
||||
int bIsFirstTime = 1;
|
||||
void _init(); // forward declaration
|
||||
void __attribute__((constructor)) swh_init(); // forward declaration
|
||||
#else
|
||||
#define _WINDOWS_DLL_EXPORT_
|
||||
#endif
|
||||
@@ -54,7 +54,7 @@ const LADSPA_Descriptor *ladspa_descriptor(unsigned long index) {
|
||||
|
||||
#ifdef WIN32
|
||||
if (bIsFirstTime) {
|
||||
_init();
|
||||
swh_init();
|
||||
bIsFirstTime = 0;
|
||||
}
|
||||
#endif
|
||||
@@ -241,7 +241,7 @@ static void runAddingPitchScale(LADSPA_Handle instance, unsigned long sample_cou
|
||||
OVER_SAMP);
|
||||
}
|
||||
|
||||
void _init() {
|
||||
void __attribute__((constructor)) swh_init() {
|
||||
char **port_names;
|
||||
LADSPA_PortDescriptor *port_descriptors;
|
||||
LADSPA_PortRangeHint *port_range_hints;
|
||||
@@ -327,7 +327,7 @@ void _init() {
|
||||
}
|
||||
}
|
||||
|
||||
void _fini() {
|
||||
void __attribute__((destructor)) swh_fini() {
|
||||
if (pitchScaleDescriptor) {
|
||||
free((LADSPA_PortDescriptor *)pitchScaleDescriptor->PortDescriptors);
|
||||
free((char **)pitchScaleDescriptor->PortNames);
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#ifdef WIN32
|
||||
#define _WINDOWS_DLL_EXPORT_ __declspec(dllexport)
|
||||
int bIsFirstTime = 1;
|
||||
void _init(); // forward declaration
|
||||
void __attribute__((constructor)) swh_init(); // forward declaration
|
||||
#else
|
||||
#define _WINDOWS_DLL_EXPORT_
|
||||
#endif
|
||||
@@ -54,7 +54,7 @@ const LADSPA_Descriptor *ladspa_descriptor(unsigned long index) {
|
||||
|
||||
#ifdef WIN32
|
||||
if (bIsFirstTime) {
|
||||
_init();
|
||||
swh_init();
|
||||
bIsFirstTime = 0;
|
||||
}
|
||||
#endif
|
||||
@@ -225,7 +225,7 @@ static void runAddingPitchScaleHQ(LADSPA_Handle instance, unsigned long sample_c
|
||||
/ OVER_SAMP);
|
||||
}
|
||||
|
||||
void _init() {
|
||||
void __attribute__((constructor)) swh_init() {
|
||||
char **port_names;
|
||||
LADSPA_PortDescriptor *port_descriptors;
|
||||
LADSPA_PortRangeHint *port_range_hints;
|
||||
@@ -311,7 +311,7 @@ void _init() {
|
||||
}
|
||||
}
|
||||
|
||||
void _fini() {
|
||||
void __attribute__((destructor)) swh_fini() {
|
||||
if (pitchScaleHQDescriptor) {
|
||||
free((LADSPA_PortDescriptor *)pitchScaleHQDescriptor->PortDescriptors);
|
||||
free((char **)pitchScaleHQDescriptor->PortNames);
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#ifdef WIN32
|
||||
#define _WINDOWS_DLL_EXPORT_ __declspec(dllexport)
|
||||
int bIsFirstTime = 1;
|
||||
void _init(); // forward declaration
|
||||
void __attribute__((constructor)) swh_init(); // forward declaration
|
||||
#else
|
||||
#define _WINDOWS_DLL_EXPORT_
|
||||
#endif
|
||||
@@ -60,7 +60,7 @@ const LADSPA_Descriptor *ladspa_descriptor(unsigned long index) {
|
||||
|
||||
#ifdef WIN32
|
||||
if (bIsFirstTime) {
|
||||
_init();
|
||||
swh_init();
|
||||
bIsFirstTime = 0;
|
||||
}
|
||||
#endif
|
||||
@@ -295,7 +295,7 @@ static void runAddingPlate(LADSPA_Handle instance, unsigned long sample_count) {
|
||||
}
|
||||
}
|
||||
|
||||
void _init() {
|
||||
void __attribute__((constructor)) swh_init() {
|
||||
char **port_names;
|
||||
LADSPA_PortDescriptor *port_descriptors;
|
||||
LADSPA_PortRangeHint *port_range_hints;
|
||||
@@ -401,7 +401,7 @@ void _init() {
|
||||
}
|
||||
}
|
||||
|
||||
void _fini() {
|
||||
void __attribute__((destructor)) swh_fini() {
|
||||
if (plateDescriptor) {
|
||||
free((LADSPA_PortDescriptor *)plateDescriptor->PortDescriptors);
|
||||
free((char **)plateDescriptor->PortNames);
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#ifdef WIN32
|
||||
#define _WINDOWS_DLL_EXPORT_ __declspec(dllexport)
|
||||
int bIsFirstTime = 1;
|
||||
void _init(); // forward declaration
|
||||
void __attribute__((constructor)) swh_init(); // forward declaration
|
||||
#else
|
||||
#define _WINDOWS_DLL_EXPORT_
|
||||
#endif
|
||||
@@ -59,7 +59,7 @@ const LADSPA_Descriptor *ladspa_descriptor(unsigned long index) {
|
||||
|
||||
#ifdef WIN32
|
||||
if (bIsFirstTime) {
|
||||
_init();
|
||||
swh_init();
|
||||
bIsFirstTime = 0;
|
||||
}
|
||||
#endif
|
||||
@@ -221,7 +221,7 @@ static void runAddingPointerCastDistortion(LADSPA_Handle instance, unsigned long
|
||||
}
|
||||
}
|
||||
|
||||
void _init() {
|
||||
void __attribute__((constructor)) swh_init() {
|
||||
char **port_names;
|
||||
LADSPA_PortDescriptor *port_descriptors;
|
||||
LADSPA_PortRangeHint *port_range_hints;
|
||||
@@ -310,7 +310,7 @@ void _init() {
|
||||
}
|
||||
}
|
||||
|
||||
void _fini() {
|
||||
void __attribute__((destructor)) swh_fini() {
|
||||
if (pointerCastDistortionDescriptor) {
|
||||
free((LADSPA_PortDescriptor *)pointerCastDistortionDescriptor->PortDescriptors);
|
||||
free((char **)pointerCastDistortionDescriptor->PortNames);
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#ifdef WIN32
|
||||
#define _WINDOWS_DLL_EXPORT_ __declspec(dllexport)
|
||||
int bIsFirstTime = 1;
|
||||
void _init(); // forward declaration
|
||||
void __attribute__((constructor)) swh_init(); // forward declaration
|
||||
#else
|
||||
#define _WINDOWS_DLL_EXPORT_
|
||||
#endif
|
||||
@@ -51,7 +51,7 @@ const LADSPA_Descriptor *ladspa_descriptor(unsigned long index) {
|
||||
|
||||
#ifdef WIN32
|
||||
if (bIsFirstTime) {
|
||||
_init();
|
||||
swh_init();
|
||||
bIsFirstTime = 0;
|
||||
}
|
||||
#endif
|
||||
@@ -235,7 +235,7 @@ static void runAddingRateShifter(LADSPA_Handle instance, unsigned long sample_co
|
||||
plugin_data->write_ptr = write_ptr;
|
||||
}
|
||||
|
||||
void _init() {
|
||||
void __attribute__((constructor)) swh_init() {
|
||||
char **port_names;
|
||||
LADSPA_PortDescriptor *port_descriptors;
|
||||
LADSPA_PortRangeHint *port_range_hints;
|
||||
@@ -314,7 +314,7 @@ void _init() {
|
||||
}
|
||||
}
|
||||
|
||||
void _fini() {
|
||||
void __attribute__((destructor)) swh_fini() {
|
||||
if (rateShifterDescriptor) {
|
||||
free((LADSPA_PortDescriptor *)rateShifterDescriptor->PortDescriptors);
|
||||
free((char **)rateShifterDescriptor->PortNames);
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#ifdef WIN32
|
||||
#define _WINDOWS_DLL_EXPORT_ __declspec(dllexport)
|
||||
int bIsFirstTime = 1;
|
||||
void _init(); // forward declaration
|
||||
void __attribute__((constructor)) swh_init(); // forward declaration
|
||||
#else
|
||||
#define _WINDOWS_DLL_EXPORT_
|
||||
#endif
|
||||
@@ -78,7 +78,7 @@ const LADSPA_Descriptor *ladspa_descriptor(unsigned long index) {
|
||||
|
||||
#ifdef WIN32
|
||||
if (bIsFirstTime) {
|
||||
_init();
|
||||
swh_init();
|
||||
bIsFirstTime = 0;
|
||||
}
|
||||
#endif
|
||||
@@ -492,7 +492,7 @@ static void runAddingRetroFlange(LADSPA_Handle instance, unsigned long sample_co
|
||||
plugin_data->z2 = z2;
|
||||
}
|
||||
|
||||
void _init() {
|
||||
void __attribute__((constructor)) swh_init() {
|
||||
char **port_names;
|
||||
LADSPA_PortDescriptor *port_descriptors;
|
||||
LADSPA_PortRangeHint *port_range_hints;
|
||||
@@ -581,7 +581,7 @@ void _init() {
|
||||
}
|
||||
}
|
||||
|
||||
void _fini() {
|
||||
void __attribute__((destructor)) swh_fini() {
|
||||
if (retroFlangeDescriptor) {
|
||||
free((LADSPA_PortDescriptor *)retroFlangeDescriptor->PortDescriptors);
|
||||
free((char **)retroFlangeDescriptor->PortNames);
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#ifdef WIN32
|
||||
#define _WINDOWS_DLL_EXPORT_ __declspec(dllexport)
|
||||
int bIsFirstTime = 1;
|
||||
void _init(); // forward declaration
|
||||
void __attribute__((constructor)) swh_init(); // forward declaration
|
||||
#else
|
||||
#define _WINDOWS_DLL_EXPORT_
|
||||
#endif
|
||||
@@ -65,7 +65,7 @@ const LADSPA_Descriptor *ladspa_descriptor(unsigned long index) {
|
||||
|
||||
#ifdef WIN32
|
||||
if (bIsFirstTime) {
|
||||
_init();
|
||||
swh_init();
|
||||
bIsFirstTime = 0;
|
||||
}
|
||||
#endif
|
||||
@@ -421,7 +421,7 @@ static void runAddingRevdelay(LADSPA_Handle instance, unsigned long sample_count
|
||||
plugin_data->write_phase = write_phase;
|
||||
}
|
||||
|
||||
void _init() {
|
||||
void __attribute__((constructor)) swh_init() {
|
||||
char **port_names;
|
||||
LADSPA_PortDescriptor *port_descriptors;
|
||||
LADSPA_PortRangeHint *port_range_hints;
|
||||
@@ -540,7 +540,7 @@ void _init() {
|
||||
}
|
||||
}
|
||||
|
||||
void _fini() {
|
||||
void __attribute__((destructor)) swh_fini() {
|
||||
if (revdelayDescriptor) {
|
||||
free((LADSPA_PortDescriptor *)revdelayDescriptor->PortDescriptors);
|
||||
free((char **)revdelayDescriptor->PortNames);
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#ifdef WIN32
|
||||
#define _WINDOWS_DLL_EXPORT_ __declspec(dllexport)
|
||||
int bIsFirstTime = 1;
|
||||
void _init(); // forward declaration
|
||||
void __attribute__((constructor)) swh_init(); // forward declaration
|
||||
#else
|
||||
#define _WINDOWS_DLL_EXPORT_
|
||||
#endif
|
||||
@@ -76,7 +76,7 @@ const LADSPA_Descriptor *ladspa_descriptor(unsigned long index) {
|
||||
|
||||
#ifdef WIN32
|
||||
if (bIsFirstTime) {
|
||||
_init();
|
||||
swh_init();
|
||||
bIsFirstTime = 0;
|
||||
}
|
||||
#endif
|
||||
@@ -429,7 +429,7 @@ static void runAddingRingmod_1i1o1l(LADSPA_Handle instance, unsigned long sample
|
||||
plugin_data->offset = offset;
|
||||
}
|
||||
|
||||
void _init() {
|
||||
void __attribute__((constructor)) swh_init() {
|
||||
char **port_names;
|
||||
LADSPA_PortDescriptor *port_descriptors;
|
||||
LADSPA_PortRangeHint *port_range_hints;
|
||||
@@ -632,7 +632,7 @@ void _init() {
|
||||
}
|
||||
}
|
||||
|
||||
void _fini() {
|
||||
void __attribute__((destructor)) swh_fini() {
|
||||
if (ringmod_2i1oDescriptor) {
|
||||
free((LADSPA_PortDescriptor *)ringmod_2i1oDescriptor->PortDescriptors);
|
||||
free((char **)ringmod_2i1oDescriptor->PortNames);
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#ifdef WIN32
|
||||
#define _WINDOWS_DLL_EXPORT_ __declspec(dllexport)
|
||||
int bIsFirstTime = 1;
|
||||
void _init(); // forward declaration
|
||||
void __attribute__((constructor)) swh_init(); // forward declaration
|
||||
#else
|
||||
#define _WINDOWS_DLL_EXPORT_
|
||||
#endif
|
||||
@@ -56,7 +56,7 @@ const LADSPA_Descriptor *ladspa_descriptor(unsigned long index) {
|
||||
|
||||
#ifdef WIN32
|
||||
if (bIsFirstTime) {
|
||||
_init();
|
||||
swh_init();
|
||||
bIsFirstTime = 0;
|
||||
}
|
||||
#endif
|
||||
@@ -255,7 +255,7 @@ static void runAddingSatanMaximiser(LADSPA_Handle instance, unsigned long sample
|
||||
plugin_data->buffer_pos = buffer_pos;
|
||||
}
|
||||
|
||||
void _init() {
|
||||
void __attribute__((constructor)) swh_init() {
|
||||
char **port_names;
|
||||
LADSPA_PortDescriptor *port_descriptors;
|
||||
LADSPA_PortRangeHint *port_range_hints;
|
||||
@@ -344,7 +344,7 @@ void _init() {
|
||||
}
|
||||
}
|
||||
|
||||
void _fini() {
|
||||
void __attribute__((destructor)) swh_fini() {
|
||||
if (satanMaximiserDescriptor) {
|
||||
free((LADSPA_PortDescriptor *)satanMaximiserDescriptor->PortDescriptors);
|
||||
free((char **)satanMaximiserDescriptor->PortNames);
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#ifdef WIN32
|
||||
#define _WINDOWS_DLL_EXPORT_ __declspec(dllexport)
|
||||
int bIsFirstTime = 1;
|
||||
void _init(); // forward declaration
|
||||
void __attribute__((constructor)) swh_init(); // forward declaration
|
||||
#else
|
||||
#define _WINDOWS_DLL_EXPORT_
|
||||
#endif
|
||||
@@ -68,7 +68,7 @@ const LADSPA_Descriptor *ladspa_descriptor(unsigned long index) {
|
||||
|
||||
#ifdef WIN32
|
||||
if (bIsFirstTime) {
|
||||
_init();
|
||||
swh_init();
|
||||
bIsFirstTime = 0;
|
||||
}
|
||||
#endif
|
||||
@@ -344,7 +344,7 @@ static void runAddingSc1(LADSPA_Handle instance, unsigned long sample_count) {
|
||||
plugin_data->count = count;
|
||||
}
|
||||
|
||||
void _init() {
|
||||
void __attribute__((constructor)) swh_init() {
|
||||
char **port_names;
|
||||
LADSPA_PortDescriptor *port_descriptors;
|
||||
LADSPA_PortRangeHint *port_range_hints;
|
||||
@@ -473,7 +473,7 @@ void _init() {
|
||||
}
|
||||
}
|
||||
|
||||
void _fini() {
|
||||
void __attribute__((destructor)) swh_fini() {
|
||||
if (sc1Descriptor) {
|
||||
free((LADSPA_PortDescriptor *)sc1Descriptor->PortDescriptors);
|
||||
free((char **)sc1Descriptor->PortNames);
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#ifdef WIN32
|
||||
#define _WINDOWS_DLL_EXPORT_ __declspec(dllexport)
|
||||
int bIsFirstTime = 1;
|
||||
void _init(); // forward declaration
|
||||
void __attribute__((constructor)) swh_init(); // forward declaration
|
||||
#else
|
||||
#define _WINDOWS_DLL_EXPORT_
|
||||
#endif
|
||||
@@ -70,7 +70,7 @@ const LADSPA_Descriptor *ladspa_descriptor(unsigned long index) {
|
||||
|
||||
#ifdef WIN32
|
||||
if (bIsFirstTime) {
|
||||
_init();
|
||||
swh_init();
|
||||
bIsFirstTime = 0;
|
||||
}
|
||||
#endif
|
||||
@@ -355,7 +355,7 @@ static void runAddingSc2(LADSPA_Handle instance, unsigned long sample_count) {
|
||||
plugin_data->count = count;
|
||||
}
|
||||
|
||||
void _init() {
|
||||
void __attribute__((constructor)) swh_init() {
|
||||
char **port_names;
|
||||
LADSPA_PortDescriptor *port_descriptors;
|
||||
LADSPA_PortRangeHint *port_range_hints;
|
||||
@@ -491,7 +491,7 @@ void _init() {
|
||||
}
|
||||
}
|
||||
|
||||
void _fini() {
|
||||
void __attribute__((destructor)) swh_fini() {
|
||||
if (sc2Descriptor) {
|
||||
free((LADSPA_PortDescriptor *)sc2Descriptor->PortDescriptors);
|
||||
free((char **)sc2Descriptor->PortNames);
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#ifdef WIN32
|
||||
#define _WINDOWS_DLL_EXPORT_ __declspec(dllexport)
|
||||
int bIsFirstTime = 1;
|
||||
void _init(); // forward declaration
|
||||
void __attribute__((constructor)) swh_init(); // forward declaration
|
||||
#else
|
||||
#define _WINDOWS_DLL_EXPORT_
|
||||
#endif
|
||||
@@ -76,7 +76,7 @@ const LADSPA_Descriptor *ladspa_descriptor(unsigned long index) {
|
||||
|
||||
#ifdef WIN32
|
||||
if (bIsFirstTime) {
|
||||
_init();
|
||||
swh_init();
|
||||
bIsFirstTime = 0;
|
||||
}
|
||||
#endif
|
||||
@@ -402,7 +402,7 @@ static void runAddingSc3(LADSPA_Handle instance, unsigned long sample_count) {
|
||||
plugin_data->count = count;
|
||||
}
|
||||
|
||||
void _init() {
|
||||
void __attribute__((constructor)) swh_init() {
|
||||
char **port_names;
|
||||
LADSPA_PortDescriptor *port_descriptors;
|
||||
LADSPA_PortRangeHint *port_range_hints;
|
||||
@@ -562,7 +562,7 @@ void _init() {
|
||||
}
|
||||
}
|
||||
|
||||
void _fini() {
|
||||
void __attribute__((destructor)) swh_fini() {
|
||||
if (sc3Descriptor) {
|
||||
free((LADSPA_PortDescriptor *)sc3Descriptor->PortDescriptors);
|
||||
free((char **)sc3Descriptor->PortNames);
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#ifdef WIN32
|
||||
#define _WINDOWS_DLL_EXPORT_ __declspec(dllexport)
|
||||
int bIsFirstTime = 1;
|
||||
void _init(); // forward declaration
|
||||
void __attribute__((constructor)) swh_init(); // forward declaration
|
||||
#else
|
||||
#define _WINDOWS_DLL_EXPORT_
|
||||
#endif
|
||||
@@ -80,7 +80,7 @@ const LADSPA_Descriptor *ladspa_descriptor(unsigned long index) {
|
||||
|
||||
#ifdef WIN32
|
||||
if (bIsFirstTime) {
|
||||
_init();
|
||||
swh_init();
|
||||
bIsFirstTime = 0;
|
||||
}
|
||||
#endif
|
||||
@@ -445,7 +445,7 @@ static void runAddingSc4(LADSPA_Handle instance, unsigned long sample_count) {
|
||||
*(plugin_data->gain_red) = lin2db(gain);
|
||||
}
|
||||
|
||||
void _init() {
|
||||
void __attribute__((constructor)) swh_init() {
|
||||
char **port_names;
|
||||
LADSPA_PortDescriptor *port_descriptors;
|
||||
LADSPA_PortRangeHint *port_range_hints;
|
||||
@@ -618,7 +618,7 @@ void _init() {
|
||||
}
|
||||
}
|
||||
|
||||
void _fini() {
|
||||
void __attribute__((destructor)) swh_fini() {
|
||||
if (sc4Descriptor) {
|
||||
free((LADSPA_PortDescriptor *)sc4Descriptor->PortDescriptors);
|
||||
free((char **)sc4Descriptor->PortNames);
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#ifdef WIN32
|
||||
#define _WINDOWS_DLL_EXPORT_ __declspec(dllexport)
|
||||
int bIsFirstTime = 1;
|
||||
void _init(); // forward declaration
|
||||
void __attribute__((constructor)) swh_init(); // forward declaration
|
||||
#else
|
||||
#define _WINDOWS_DLL_EXPORT_
|
||||
#endif
|
||||
@@ -76,7 +76,7 @@ const LADSPA_Descriptor *ladspa_descriptor(unsigned long index) {
|
||||
|
||||
#ifdef WIN32
|
||||
if (bIsFirstTime) {
|
||||
_init();
|
||||
swh_init();
|
||||
bIsFirstTime = 0;
|
||||
}
|
||||
#endif
|
||||
@@ -409,7 +409,7 @@ static void runAddingSc4m(LADSPA_Handle instance, unsigned long sample_count) {
|
||||
*(plugin_data->gain_red) = lin2db(gain);
|
||||
}
|
||||
|
||||
void _init() {
|
||||
void __attribute__((constructor)) swh_init() {
|
||||
char **port_names;
|
||||
LADSPA_PortDescriptor *port_descriptors;
|
||||
LADSPA_PortRangeHint *port_range_hints;
|
||||
@@ -568,7 +568,7 @@ void _init() {
|
||||
}
|
||||
}
|
||||
|
||||
void _fini() {
|
||||
void __attribute__((destructor)) swh_fini() {
|
||||
if (sc4mDescriptor) {
|
||||
free((LADSPA_PortDescriptor *)sc4mDescriptor->PortDescriptors);
|
||||
free((char **)sc4mDescriptor->PortNames);
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#ifdef WIN32
|
||||
#define _WINDOWS_DLL_EXPORT_ __declspec(dllexport)
|
||||
int bIsFirstTime = 1;
|
||||
void _init(); // forward declaration
|
||||
void __attribute__((constructor)) swh_init(); // forward declaration
|
||||
#else
|
||||
#define _WINDOWS_DLL_EXPORT_
|
||||
#endif
|
||||
@@ -80,7 +80,7 @@ const LADSPA_Descriptor *ladspa_descriptor(unsigned long index) {
|
||||
|
||||
#ifdef WIN32
|
||||
if (bIsFirstTime) {
|
||||
_init();
|
||||
swh_init();
|
||||
bIsFirstTime = 0;
|
||||
}
|
||||
#endif
|
||||
@@ -441,7 +441,7 @@ static void runAddingSe4(LADSPA_Handle instance, unsigned long sample_count) {
|
||||
*(plugin_data->gain_exp) = lin2db(gain);
|
||||
}
|
||||
|
||||
void _init() {
|
||||
void __attribute__((constructor)) swh_init() {
|
||||
char **port_names;
|
||||
LADSPA_PortDescriptor *port_descriptors;
|
||||
LADSPA_PortRangeHint *port_range_hints;
|
||||
@@ -614,7 +614,7 @@ void _init() {
|
||||
}
|
||||
}
|
||||
|
||||
void _fini() {
|
||||
void __attribute__((destructor)) swh_fini() {
|
||||
if (se4Descriptor) {
|
||||
free((LADSPA_PortDescriptor *)se4Descriptor->PortDescriptors);
|
||||
free((char **)se4Descriptor->PortNames);
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#ifdef WIN32
|
||||
#define _WINDOWS_DLL_EXPORT_ __declspec(dllexport)
|
||||
int bIsFirstTime = 1;
|
||||
void _init(); // forward declaration
|
||||
void __attribute__((constructor)) swh_init(); // forward declaration
|
||||
#else
|
||||
#define _WINDOWS_DLL_EXPORT_
|
||||
#endif
|
||||
@@ -44,7 +44,7 @@ const LADSPA_Descriptor *ladspa_descriptor(unsigned long index) {
|
||||
|
||||
#ifdef WIN32
|
||||
if (bIsFirstTime) {
|
||||
_init();
|
||||
swh_init();
|
||||
bIsFirstTime = 0;
|
||||
}
|
||||
#endif
|
||||
@@ -175,7 +175,7 @@ static void runAddingShaper(LADSPA_Handle instance, unsigned long sample_count)
|
||||
}
|
||||
}
|
||||
|
||||
void _init() {
|
||||
void __attribute__((constructor)) swh_init() {
|
||||
char **port_names;
|
||||
LADSPA_PortDescriptor *port_descriptors;
|
||||
LADSPA_PortRangeHint *port_range_hints;
|
||||
@@ -260,7 +260,7 @@ void _init() {
|
||||
}
|
||||
}
|
||||
|
||||
void _fini() {
|
||||
void __attribute__((destructor)) swh_fini() {
|
||||
if (shaperDescriptor) {
|
||||
free((LADSPA_PortDescriptor *)shaperDescriptor->PortDescriptors);
|
||||
free((char **)shaperDescriptor->PortNames);
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#ifdef WIN32
|
||||
#define _WINDOWS_DLL_EXPORT_ __declspec(dllexport)
|
||||
int bIsFirstTime = 1;
|
||||
void _init(); // forward declaration
|
||||
void __attribute__((constructor)) swh_init(); // forward declaration
|
||||
#else
|
||||
#define _WINDOWS_DLL_EXPORT_
|
||||
#endif
|
||||
@@ -33,7 +33,11 @@ void _init(); // forward declaration
|
||||
|
||||
inline int partition(LADSPA_Data array[], int left, int right);
|
||||
|
||||
#ifdef __clang__
|
||||
void q_sort(LADSPA_Data array[], int left, int right) {
|
||||
#else
|
||||
inline void q_sort(LADSPA_Data array[], int left, int right) {
|
||||
#endif
|
||||
float pivot = partition(array, left, right);
|
||||
|
||||
if (left < pivot) {
|
||||
@@ -92,7 +96,7 @@ const LADSPA_Descriptor *ladspa_descriptor(unsigned long index) {
|
||||
|
||||
#ifdef WIN32
|
||||
if (bIsFirstTime) {
|
||||
_init();
|
||||
swh_init();
|
||||
bIsFirstTime = 0;
|
||||
}
|
||||
#endif
|
||||
@@ -355,7 +359,7 @@ static void runAddingSifter(LADSPA_Handle instance, unsigned long sample_count)
|
||||
plugin_data->b2ptr = b2ptr;
|
||||
}
|
||||
|
||||
void _init() {
|
||||
void __attribute__((constructor)) swh_init() {
|
||||
char **port_names;
|
||||
LADSPA_PortDescriptor *port_descriptors;
|
||||
LADSPA_PortRangeHint *port_range_hints;
|
||||
@@ -434,7 +438,7 @@ void _init() {
|
||||
}
|
||||
}
|
||||
|
||||
void _fini() {
|
||||
void __attribute__((destructor)) swh_fini() {
|
||||
if (sifterDescriptor) {
|
||||
free((LADSPA_PortDescriptor *)sifterDescriptor->PortDescriptors);
|
||||
free((char **)sifterDescriptor->PortNames);
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#ifdef WIN32
|
||||
#define _WINDOWS_DLL_EXPORT_ __declspec(dllexport)
|
||||
int bIsFirstTime = 1;
|
||||
void _init(); // forward declaration
|
||||
void __attribute__((constructor)) swh_init(); // forward declaration
|
||||
#else
|
||||
#define _WINDOWS_DLL_EXPORT_
|
||||
#endif
|
||||
@@ -52,7 +52,7 @@ const LADSPA_Descriptor *ladspa_descriptor(unsigned long index) {
|
||||
|
||||
#ifdef WIN32
|
||||
if (bIsFirstTime) {
|
||||
_init();
|
||||
swh_init();
|
||||
bIsFirstTime = 0;
|
||||
}
|
||||
#endif
|
||||
@@ -207,7 +207,7 @@ static void runAddingSinCos(LADSPA_Handle instance, unsigned long sample_count)
|
||||
plugin_data->last_om = target_om;
|
||||
}
|
||||
|
||||
void _init() {
|
||||
void __attribute__((constructor)) swh_init() {
|
||||
char **port_names;
|
||||
LADSPA_PortDescriptor *port_descriptors;
|
||||
LADSPA_PortRangeHint *port_range_hints;
|
||||
@@ -296,7 +296,7 @@ void _init() {
|
||||
}
|
||||
}
|
||||
|
||||
void _fini() {
|
||||
void __attribute__((destructor)) swh_fini() {
|
||||
if (sinCosDescriptor) {
|
||||
free((LADSPA_PortDescriptor *)sinCosDescriptor->PortDescriptors);
|
||||
free((char **)sinCosDescriptor->PortNames);
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#ifdef WIN32
|
||||
#define _WINDOWS_DLL_EXPORT_ __declspec(dllexport)
|
||||
int bIsFirstTime = 1;
|
||||
void _init(); // forward declaration
|
||||
void __attribute__((constructor)) swh_init(); // forward declaration
|
||||
#else
|
||||
#define _WINDOWS_DLL_EXPORT_
|
||||
#endif
|
||||
@@ -53,7 +53,7 @@ const LADSPA_Descriptor *ladspa_descriptor(unsigned long index) {
|
||||
|
||||
#ifdef WIN32
|
||||
if (bIsFirstTime) {
|
||||
_init();
|
||||
swh_init();
|
||||
bIsFirstTime = 0;
|
||||
}
|
||||
#endif
|
||||
@@ -207,7 +207,7 @@ static void runAddingSinglePara(LADSPA_Handle instance, unsigned long sample_cou
|
||||
}
|
||||
}
|
||||
|
||||
void _init() {
|
||||
void __attribute__((constructor)) swh_init() {
|
||||
char **port_names;
|
||||
LADSPA_PortDescriptor *port_descriptors;
|
||||
LADSPA_PortRangeHint *port_range_hints;
|
||||
@@ -312,7 +312,7 @@ void _init() {
|
||||
}
|
||||
}
|
||||
|
||||
void _fini() {
|
||||
void __attribute__((destructor)) swh_fini() {
|
||||
if (singleParaDescriptor) {
|
||||
free((LADSPA_PortDescriptor *)singleParaDescriptor->PortDescriptors);
|
||||
free((char **)singleParaDescriptor->PortNames);
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#ifdef WIN32
|
||||
#define _WINDOWS_DLL_EXPORT_ __declspec(dllexport)
|
||||
int bIsFirstTime = 1;
|
||||
void _init(); // forward declaration
|
||||
void __attribute__((constructor)) swh_init(); // forward declaration
|
||||
#else
|
||||
#define _WINDOWS_DLL_EXPORT_
|
||||
#endif
|
||||
@@ -44,7 +44,7 @@ const LADSPA_Descriptor *ladspa_descriptor(unsigned long index) {
|
||||
|
||||
#ifdef WIN32
|
||||
if (bIsFirstTime) {
|
||||
_init();
|
||||
swh_init();
|
||||
bIsFirstTime = 0;
|
||||
}
|
||||
#endif
|
||||
@@ -159,7 +159,7 @@ static void runAddingSinusWavewrapper(LADSPA_Handle instance, unsigned long samp
|
||||
}
|
||||
}
|
||||
|
||||
void _init() {
|
||||
void __attribute__((constructor)) swh_init() {
|
||||
char **port_names;
|
||||
LADSPA_PortDescriptor *port_descriptors;
|
||||
LADSPA_PortRangeHint *port_range_hints;
|
||||
@@ -244,7 +244,7 @@ void _init() {
|
||||
}
|
||||
}
|
||||
|
||||
void _fini() {
|
||||
void __attribute__((destructor)) swh_fini() {
|
||||
if (sinusWavewrapperDescriptor) {
|
||||
free((LADSPA_PortDescriptor *)sinusWavewrapperDescriptor->PortDescriptors);
|
||||
free((char **)sinusWavewrapperDescriptor->PortNames);
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#ifdef WIN32
|
||||
#define _WINDOWS_DLL_EXPORT_ __declspec(dllexport)
|
||||
int bIsFirstTime = 1;
|
||||
void _init(); // forward declaration
|
||||
void __attribute__((constructor)) swh_init(); // forward declaration
|
||||
#else
|
||||
#define _WINDOWS_DLL_EXPORT_
|
||||
#endif
|
||||
@@ -53,7 +53,7 @@ const LADSPA_Descriptor *ladspa_descriptor(unsigned long index) {
|
||||
|
||||
#ifdef WIN32
|
||||
if (bIsFirstTime) {
|
||||
_init();
|
||||
swh_init();
|
||||
bIsFirstTime = 0;
|
||||
}
|
||||
#endif
|
||||
@@ -240,7 +240,7 @@ static void runAddingSmoothDecimate(LADSPA_Handle instance, unsigned long sample
|
||||
plugin_data->buffer_pos = buffer_pos;
|
||||
}
|
||||
|
||||
void _init() {
|
||||
void __attribute__((constructor)) swh_init() {
|
||||
char **port_names;
|
||||
LADSPA_PortDescriptor *port_descriptors;
|
||||
LADSPA_PortRangeHint *port_range_hints;
|
||||
@@ -329,7 +329,7 @@ void _init() {
|
||||
}
|
||||
}
|
||||
|
||||
void _fini() {
|
||||
void __attribute__((destructor)) swh_fini() {
|
||||
if (smoothDecimateDescriptor) {
|
||||
free((LADSPA_PortDescriptor *)smoothDecimateDescriptor->PortDescriptors);
|
||||
free((char **)smoothDecimateDescriptor->PortNames);
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#ifdef WIN32
|
||||
#define _WINDOWS_DLL_EXPORT_ __declspec(dllexport)
|
||||
int bIsFirstTime = 1;
|
||||
void _init(); // forward declaration
|
||||
void __attribute__((constructor)) swh_init(); // forward declaration
|
||||
#else
|
||||
#define _WINDOWS_DLL_EXPORT_
|
||||
#endif
|
||||
@@ -44,7 +44,7 @@ const LADSPA_Descriptor *ladspa_descriptor(unsigned long index) {
|
||||
|
||||
#ifdef WIN32
|
||||
if (bIsFirstTime) {
|
||||
_init();
|
||||
swh_init();
|
||||
bIsFirstTime = 0;
|
||||
}
|
||||
#endif
|
||||
@@ -155,7 +155,7 @@ static void runAddingSplit(LADSPA_Handle instance, unsigned long sample_count) {
|
||||
}
|
||||
}
|
||||
|
||||
void _init() {
|
||||
void __attribute__((constructor)) swh_init() {
|
||||
char **port_names;
|
||||
LADSPA_PortDescriptor *port_descriptors;
|
||||
LADSPA_PortRangeHint *port_range_hints;
|
||||
@@ -240,7 +240,7 @@ void _init() {
|
||||
}
|
||||
}
|
||||
|
||||
void _fini() {
|
||||
void __attribute__((destructor)) swh_fini() {
|
||||
if (splitDescriptor) {
|
||||
free((LADSPA_PortDescriptor *)splitDescriptor->PortDescriptors);
|
||||
free((char **)splitDescriptor->PortNames);
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#ifdef WIN32
|
||||
#define _WINDOWS_DLL_EXPORT_ __declspec(dllexport)
|
||||
int bIsFirstTime = 1;
|
||||
void _init(); // forward declaration
|
||||
void __attribute__((constructor)) swh_init(); // forward declaration
|
||||
#else
|
||||
#define _WINDOWS_DLL_EXPORT_
|
||||
#endif
|
||||
@@ -70,7 +70,7 @@ const LADSPA_Descriptor *ladspa_descriptor(unsigned long index) {
|
||||
|
||||
#ifdef WIN32
|
||||
if (bIsFirstTime) {
|
||||
_init();
|
||||
swh_init();
|
||||
bIsFirstTime = 0;
|
||||
}
|
||||
#endif
|
||||
@@ -397,7 +397,7 @@ static void runAddingStepMuxer(LADSPA_Handle instance, unsigned long sample_coun
|
||||
plugin_data->last_clock = last_clock;
|
||||
}
|
||||
|
||||
void _init() {
|
||||
void __attribute__((constructor)) swh_init() {
|
||||
char **port_names;
|
||||
LADSPA_PortDescriptor *port_descriptors;
|
||||
LADSPA_PortRangeHint *port_range_hints;
|
||||
@@ -532,7 +532,7 @@ void _init() {
|
||||
}
|
||||
}
|
||||
|
||||
void _fini() {
|
||||
void __attribute__((destructor)) swh_fini() {
|
||||
if (stepMuxerDescriptor) {
|
||||
free((LADSPA_PortDescriptor *)stepMuxerDescriptor->PortDescriptors);
|
||||
free((char **)stepMuxerDescriptor->PortNames);
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user