Accepting request 36762 from multimedia:libs

Copy from multimedia:libs/ladspa based on submit request 36762 from user plater

OBS-URL: https://build.opensuse.org/request/show/36762
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ladspa?expand=0&rev=11
This commit is contained in:
OBS User autobuild 2010-04-02 22:20:59 +00:00 committed by Git OBS Bridge
commit 423b7389be
27 changed files with 252 additions and 372 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e64616274348d1b2c4a00cffcd8f30b3b649d26193a5a250d78167a479f37ed2
size 19080

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:bd42912c38f6ba8ce5b252ee216cfb59047d1708c57adf4bb7b7c7e6da62213d
size 27366

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e0e58510d8c7ee58a24ce05e7a9f87bf32fcdeb7b19657191e0f059629805086
size 16750

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1c0bf271211965f670a15a7783b4167307db77264ac1624a06e5667964da8ee9
size 16833

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0e9251be296d247f5ed70906dc7f4d6ab098534fc1c15021bc09be370c123748
size 23014

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6c5bba81251ea03538ac3978279fea4065342b4267b0cd023dafca8268c84919
size 23637

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:daa154126376e4eb04909520fe0981b1f3f06b596cf968aea75227524094c418
size 674270

3
caps_0.4.4.tar.bz2 Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:cadb68b1266a629caee507b3fc521209cb8eff1da7b15716edac197c0f78a9e5
size 691374

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Jan 21 07:27:40 UTC 2010 - davejplater@gmail.com
- Update to 1.13
-------------------------------------------------------------------
Wed Feb 13 13:50:30 CET 2008 - adrian@suse.de

View File

@ -1,7 +1,7 @@
#
# spec file for package ladspa-devel (Version 1.12.code10.3)
# spec file for package ladspa-devel (Version 1.13)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -19,15 +19,16 @@
Name: ladspa-devel
Summary: Include Files mandatory for Development.
Version: 1.12.code10.3
Release: 106
License: GPLv2+
Summary: Include Files mandatory for Development
Version: 1.13
Release: 1
License: LGPLv2.1+
Group: Development/Libraries/C and C++
Source: ladspa_sdk_1.12.tar.bz2
Source: ladspa_sdk_1.13.tar.bz2
Url: http://www.ladspa.org/
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
Provides: ladspa-devel > 1.12.code10.3.1
%description
This package contains include files to develop LADSPA plugins.

View File

@ -1,3 +1,37 @@
-------------------------------------------------------------------
Mon Mar 22 05:12:28 UTC 2010 - davejplater@gmail.com
- Add swh-configure-2.65.patch for autoconf-2.65 build
-------------------------------------------------------------------
Tue Jan 26 07:21:56 UTC 2010 - davejplater@gmail.com
- Fixed swt lib build with swh-liblo.dif & swh-configure.patch
-------------------------------------------------------------------
Fri Jan 22 08:52:05 UTC 2010 - davejplater@gmail.com
- Update plugins to AMB-plugins-0.6.1, FIL-plugins-0.3.0,
MCP-plugins-0.4.0, caps_0.4.4, pvoc_0.1.12, tap-plugins-0.7.1 and
vocoder-ladspa-0.3.
- Fix tap-type-punning-fix.dif
-------------------------------------------------------------------
Thu Jan 21 07:00:52 UTC 2010 - davejplater@gmail.com
- Update to ladspa-1.13
- Removed ladspa_sdk-compile-fix.diff and adapted ladspa.dif
- Moved examples directory to {_docdir}/{name}/examples
- Updated "License: LGPL2.1+"
- Version 1.13 - 6 Nov 2007
• Fix compile error in sine.cpp (GCC4).
• Fix typo in text output by analyseplugin.
• Extra usage text in analyseplugin and applyplugin.
• Replace strdup() with localStrdup() in sine.cpp to avoid malloc/new
mismatch.
• Remove "local" part from install directories.
-------------------------------------------------------------------
Wed Nov 25 13:58:09 UTC 2009 - mseben@novell.com

View File

@ -1,6 +1,8 @@
--- ladspa_sdk/src/makefile
+++ ladspa_sdk/src/makefile 2002/05/07 10:59:53
@@ -28,6 +28,9 @@
Index: ladspa_sdk/src/makefile
===================================================================
--- ladspa_sdk/src/makefile.orig
+++ ladspa_sdk/src/makefile
@@ -27,6 +27,9 @@ PROGRAMS = ../bin/analyseplugin \
../bin/listplugins
CC = cc
CPP = c++
@ -10,18 +12,20 @@
###############################################################################
#
@@ -59,7 +62,7 @@
play /tmp/test.wav
@@ -59,7 +62,7 @@ test: /tmp/test.wav ../snd/noise.wav alw
@echo Test complete.
install: targets
- -mkdirhier $(INSTALL_PLUGINS_DIR) \
+ -$(MKDIRHIER) $(INSTALL_PLUGINS_DIR) \
$(INSTALL_INCLUDE_DIR) \
$(INSTALL_BINARY_DIR)
- -mkdirhier $(INSTALL_PLUGINS_DIR)
+ -$(MKDIRHIER) $(INSTALL_PLUGINS_DIR)
-mkdirhier $(INSTALL_INCLUDE_DIR)
-mkdirhier $(INSTALL_BINARY_DIR)
cp ../plugins/* $(INSTALL_PLUGINS_DIR)
--- ladspa_sdk/src/plugins/amp.c
+++ ladspa_sdk/src/plugins/amp.c 2002/05/07 12:17:35
@@ -152,8 +152,8 @@
Index: ladspa_sdk/src/plugins/amp.c
===================================================================
--- ladspa_sdk/src/plugins/amp.c.orig
+++ ladspa_sdk/src/plugins/amp.c
@@ -152,8 +152,8 @@ LADSPA_Descriptor * g_psStereoDescriptor
/* _init() is called automatically when the plugin library is first
loaded. */
@ -32,7 +36,7 @@
char ** pcPortNames;
LADSPA_PortDescriptor * piPortDescriptors;
@@ -333,8 +333,8 @@
@@ -335,8 +335,8 @@ deleteDescriptor(LADSPA_Descriptor * psD
/*****************************************************************************/
/* _fini() is called automatically when the library is unloaded. */
@ -43,9 +47,11 @@
deleteDescriptor(g_psMonoDescriptor);
deleteDescriptor(g_psStereoDescriptor);
}
--- ladspa_sdk/src/plugins/delay.c
+++ ladspa_sdk/src/plugins/delay.c 2002/05/07 12:17:09
@@ -228,8 +228,8 @@
Index: ladspa_sdk/src/plugins/delay.c
===================================================================
--- ladspa_sdk/src/plugins/delay.c.orig
+++ ladspa_sdk/src/plugins/delay.c
@@ -228,8 +228,8 @@ LADSPA_Descriptor * g_psDescriptor = NUL
/* _init() is called automatically when the plugin library is first
loaded. */
@ -56,7 +62,7 @@
char ** pcPortNames;
LADSPA_PortDescriptor * piPortDescriptors;
@@ -318,8 +318,8 @@
@@ -322,8 +322,8 @@ _init() {
/*****************************************************************************/
/* _fini() is called automatically when the library is unloaded. */
@ -67,9 +73,11 @@
long lIndex;
if (g_psDescriptor) {
free((char *)g_psDescriptor->Label);
--- ladspa_sdk/src/plugins/filter.c
+++ ladspa_sdk/src/plugins/filter.c 2002/05/07 12:17:53
@@ -252,8 +252,8 @@
Index: ladspa_sdk/src/plugins/filter.c
===================================================================
--- ladspa_sdk/src/plugins/filter.c.orig
+++ ladspa_sdk/src/plugins/filter.c
@@ -252,8 +252,8 @@ LADSPA_Descriptor * g_psHPFDescriptor =
/* _init() is called automatically when the plugin library is first
loaded. */
@ -80,7 +88,7 @@
char ** pcPortNames;
LADSPA_PortDescriptor * piPortDescriptors;
@@ -429,8 +429,8 @@
@@ -431,8 +431,8 @@ deleteDescriptor(LADSPA_Descriptor * psD
/*****************************************************************************/
/* _fini() is called automatically when the library is unloaded. */
@ -91,9 +99,11 @@
deleteDescriptor(g_psLPFDescriptor);
deleteDescriptor(g_psHPFDescriptor);
}
--- ladspa_sdk/src/plugins/noise.c
+++ ladspa_sdk/src/plugins/noise.c 2002/05/07 12:18:09
@@ -142,8 +142,8 @@
Index: ladspa_sdk/src/plugins/noise.c
===================================================================
--- ladspa_sdk/src/plugins/noise.c.orig
+++ ladspa_sdk/src/plugins/noise.c
@@ -142,8 +142,8 @@ LADSPA_Descriptor * g_psDescriptor;
/* _init() is called automatically when the plugin library is first
loaded. */
@ -104,7 +114,7 @@
char ** pcPortNames;
LADSPA_PortDescriptor * piPortDescriptors;
@@ -217,8 +217,8 @@
@@ -219,8 +219,8 @@ _init() {
/*****************************************************************************/
/* _fini() is called automatically when the library is unloaded. */

View File

@ -1,7 +1,7 @@
#
# spec file for package ladspa (Version 1.12.code10.3.1)
# spec file for package ladspa (Version 1.13)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -19,31 +19,32 @@
Name: ladspa
BuildRequires: fdupes fftw-devel fftw3-devel flac-devel gcc-c++ ladspa-devel libsndfile-devel pkgconfig
%define swh_version 0.4.15
%define vocoder_version 0.2
%define alienwah_version 1.13
%define sooperlooper_version 0.93
%define blop_version 0.2.8
%define vcf_version 0.0.5
%define vlevel_version 0.5
%define MCP_version 0.3.0
BuildRequires: fdupes fftw-devel fftw3-devel flac-devel gcc-c++ ladspa-devel libsndfile-devel pkgconfig xorg-x11-util-devel
%define AMB_version 0.6.1
%define FIL_version 0.3.0
%define MCP_version 0.4.0
%define REV_version 0.3.1
%define VCO_version 0.3.0
%define FIL_version 0.0.1
%define AMB_version 0.0.1
%define tap_version 0.7.0
%define caps_version 0.4.2
%define pvoc_version 0.1.10
%define alienwah_version 1.13
%define blepvco_version 0.1.0
%define blop_version 0.2.8
%define caps_version 0.4.4
%define pvoc_version 0.1.12
%define sooperlooper_version 0.93
%define swh_version 0.4.15
%define tap_version 0.7.1
%define vcf_version 0.0.5
%define vlevel_version 0.5
%define vocoder_version 0.3
Summary: The Linux Audio Developer's Simple Plug-In API
Version: 1.12.code10.3.1
Release: 120
License: GPLv2+
Version: 1.13
Release: 1
License: LGPLv2.1+
Group: Development/Libraries/C and C++
AutoReq: on
Autoprov: off
Source1: ladspa_sdk_1.12.tar.bz2
Provides: ladspa > 1.12.code10.3.1
Source1: ladspa_sdk_1.13.tar.bz2
Source2: cmt_src_1.15.tar.bz2
Source3: swh-plugins-%{swh_version}.tar.bz2
Source4: ladspa-swh.tex
@ -86,8 +87,13 @@ Patch15: swh-readonly.dif
Patch16: pvoc-compile-fix.dif
Patch17: swh-0.4.13-gcc4-fix.diff
Patch18: sooperlooper-0.93-gcc4-fix.diff
Patch20: pvoc-0.1.10-gcc4-fix.diff
Patch21: ladspa_sdk-compile-fix.diff
Patch20: swh-libblo.dif
# swh-configure.patch changes for >= autoconf-2.65 in openSUSE 11.3
%if %suse_version <= 1120
Patch21: swh-configure.patch
%else
Patch21: swh-configure-2.65.patch
%endif
Patch22: alienwah-compile-fix.diff
Patch23: alienwah-float_complex.diff
Patch25: pvoc-0.1.10-depend-copts-fix.diff
@ -126,17 +132,19 @@ Authors:
# pvoc, caps, preamp, match, unmatched, super-60:
# http://quitte.de/dsp/
# blepvco: http://home.jps.net/~musound/
#
#
%setup -q -c -n ladspa -T -a 1 -a 2 -a 3 -a 6 -a 7 -a 8 -a 9 -a 10 -a 11 -a 12 -a 13 -a 14 -a 15 -a 16 -a 17 -a 18 -a 19 -a 20 -a 21 -a 22 -a 23 -a 24
%patch
(cd ladspa_sdk
%patch21
)
(cd swh-plugins-%{swh_version}
%patch1
%patch15
%patch17
%patch26 -p1
%patch20 -p1
touch config.rpath
./autogen.sh --prefix=%{_prefix}
%{?suse_update_config:%{suse_update_config -f}}
%patch21 -p 1
)
(cd cmt
%patch2
@ -153,6 +161,7 @@ Authors:
%patch6
%patch27
%patch28
%{?suse_update_config:%{suse_update_config -f}}
)
(cd vcf-%{vcf_version}
%patch7
@ -180,11 +189,8 @@ Authors:
)
(cd pvoc-%{pvoc_version}
%patch16
%patch20
%patch25
)
# (cd caps-%{caps_version}
# )
%build
# This package failed when testing with -Wl,-as-needed being default.
@ -192,98 +198,101 @@ Authors:
export SUSE_ASNEEDED=0
# LADSPA SDK
cd ladspa_sdk/src
make CFLAGS="$RPM_OPT_FLAGS -fPIC" targets
make CFLAGS="$RPM_OPT_FLAGS -fPIC -ggdb" targets
cd ../..
# CMT
cd cmt/src
make CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing -fPIC" targets
make CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing -fPIC -ggdb" targets
cd ../..
# SWH plugins
cd swh-plugins-%{swh_version}
%if %suse_version <= 1100
autoreconf --install --force
CFLAGS="$RPM_OPT_FLAGS -fPIC -DPIC -fno-strict-aliasing" \
%endif
#./autogen.sh --prefix=%{_prefix} --libdir=%{_libdir}
CFLAGS="$RPM_OPT_FLAGS -fPIC -ggdb -DPIC -fno-strict-aliasing" \
./configure --prefix=%{_prefix}
make CFLAGS="$RPM_OPT_FLAGS -fPIC -DPIC -fno-strict-aliasing"
make CFLAGS="$RPM_OPT_FLAGS -fPIC -ggdb -DPIC -fno-strict-aliasing"
cd ..
# Vocoder
cd vocoder-%{vocoder_version}
make CFLAGS="$RPM_OPT_FLAGS -fPIC"
make CFLAGS="$RPM_OPT_FLAGS -fPIC -ggdb"
cd ..
# Alien Wah
cd alienwah-%{alienwah_version}
make CFLAGS="$RPM_OPT_FLAGS -fPIC"
make CFLAGS="$RPM_OPT_FLAGS -fPIC -ggdb"
cd ..
# Sooperlooper
cd sooperlooper-%{sooperlooper_version}
make CFLAGS="$RPM_OPT_FLAGS -fPIC"
make CFLAGS="$RPM_OPT_FLAGS -fPIC -ggdb"
cd ..
# Blop
cd blop-%{blop_version}
autoreconf --install --force
#autoreconf --install --force
./configure --prefix=%{_prefix} \
--with-ladspa-plugin-dir=%{_libdir}/ladspa
make CFLAGS="$RPM_OPT_FLAGS -DNO_DEBUG -DPIC -fPIC"
make CFLAGS="$RPM_OPT_FLAGS -DNO_DEBUG -DPIC -fPIC -ggdb"
cd ..
# VCF
cd vcf-%{vcf_version}
make CFLAGS="$RPM_OPT_FLAGS -fPIC"
make CFLAGS="$RPM_OPT_FLAGS -fPIC -ggdb"
cd ..
# unmatched
cd unmatched
make CFLAGS="$RPM_OPT_FLAGS -fPIC"
make CFLAGS="$RPM_OPT_FLAGS -fPIC -ggdb"
cd ..
# matched
cd matched
make CFLAGS="$RPM_OPT_FLAGS -fPIC"
make CFLAGS="$RPM_OPT_FLAGS -fPIC -ggdb"
cd ..
# preamp
cd preamp
make CFLAGS="$RPM_OPT_FLAGS -fPIC -fno-strict-aliasing" \
CXXFLAGS="$RPM_OPT_FLAGS -fPIC -fno-strict-aliasing"
make CFLAGS="$RPM_OPT_FLAGS -fPIC -ggdb -fno-strict-aliasing" \
CXXFLAGS="$RPM_OPT_FLAGS -fPIC -ggdb -fno-strict-aliasing"
cd ..
# MCP plugins
cd MCP-plugins-%{MCP_version}
make CXXFLAGS="$RPM_OPT_FLAGS -fPIC"
make CXXFLAGS="$RPM_OPT_FLAGS -fPIC -ggdb"
cd ..
# REV plugins
cd REV-plugins-%{REV_version}
make CXXFLAGS="$RPM_OPT_FLAGS -fPIC"
make CXXFLAGS="$RPM_OPT_FLAGS -fPIC -ggdb"
cd ..
# VCO plugins
cd VCO-plugins-%{VCO_version}
make CXXFLAGS="$RPM_OPT_FLAGS -fPIC"
make CXXFLAGS="$RPM_OPT_FLAGS -fPIC -ggdb"
cd ..
# vlevel
cd vlevel-%{vlevel_version}
make CXXFLAGS="$RPM_OPT_FLAGS -fPIC"
make CXXFLAGS="$RPM_OPT_FLAGS -fPIC -ggdb"
cd ..
# tap-plugins
cd tap-plugins-%{tap_version}
make CFLAGS="$RPM_OPT_FLAGS -fPIC -c"
make CFLAGS="$RPM_OPT_FLAGS -fPIC -ggdb -c"
cd ..
# super-60
cd super-60
make CFLAGS="$RPM_OPT_FLAGS -fPIC"
make CFLAGS="$RPM_OPT_FLAGS -ggdb -fPIC"
cd ..
# caps
cd caps-%{caps_version}
make CFLAGS="$RPM_OPT_FLAGS -fPIC"
make CFLAGS="$RPM_OPT_FLAGS -ggdb -fPIC"
cd ..
# FIL plugins
cd FIL-plugins-%{FIL_version}
make CXXFLAGS="$RPM_OPT_FLAGS -fPIC"
make CXXFLAGS="$RPM_OPT_FLAGS -ggdb -fPIC"
cd ..
# AMB plugins
cd AMB-plugins-%{AMB_version}
make CXXFLAGS="$RPM_OPT_FLAGS -fPIC"
make CXXFLAGS="$RPM_OPT_FLAGS -ggdb -fPIC"
cd ..
# pvoc plugins
cd pvoc-%{pvoc_version}
make OPTS="$RPM_OPT_FLAGS -fPIC"
make OPTS="$RPM_OPT_FLAGS -ggdb -fPIC"
cd ..
# blepvco
cd blepvco-%{blepvco_version}
make CPPFLAGS="$RPM_OPT_FLAGS -fPIC"
make CPPFLAGS="$RPM_OPT_FLAGS -ggdb -fPIC"
cd ..
%install
@ -333,7 +342,8 @@ done
mkdir -p "$RPM_BUILD_ROOT"%{_bindir}
install -c -m 755 vlevel-%{vlevel_version}/vlevel-bin "$RPM_BUILD_ROOT"%{_bindir}
# additional RDF files
cp %{SOURCE30} $RPM_BUILD_ROOT%{_datadir}/ladspa/rdf
mkdir -p $RPM_BUILD_ROOT%{_datadir}/ladspa/rdf
cp -p %{SOURCE30} $RPM_BUILD_ROOT%{_datadir}/ladspa/rdf
cp tap-plugins-%{tap_version}/*.rdf $RPM_BUILD_ROOT%{_datadir}/ladspa/rdf
# install documents
mkdir -p $RPM_BUILD_ROOT%{_docdir}/%{name}/{cmt,swh,vcf}
@ -373,8 +383,8 @@ cp -av swh-plugins-%{swh_version}/gsm/README $RPM_BUILD_ROOT%{_docdir}/%{name}/s
cp %{SOURCE4} %{SOURCE5} $RPM_BUILD_ROOT%{_docdir}/%{name}/swh
cp %{SOURCE50} $RPM_BUILD_ROOT%{_docdir}/%{name}/vcf
cp -av vlevel-%{vlevel_version}/docs $RPM_BUILD_ROOT%{_docdir}/%{name}/vlevel
mkdir -p $RPM_BUILD_ROOT%{_docdir}/examples/vlevel
cp -av vlevel-%{vlevel_version}/utils/* $RPM_BUILD_ROOT%{_docdir}/examples/vlevel
mkdir -p $RPM_BUILD_ROOT%{_docdir}/%{name}/examples/vlevel
cp -av vlevel-%{vlevel_version}/utils/* $RPM_BUILD_ROOT%{_docdir}/%{name}/examples/vlevel
chmod 644 $RPM_BUILD_ROOT%{_docdir}/%{name}/cmt/plugins.html
# remove incldue file (already in devel package)
rm -f $RPM_BUILD_ROOT%{_includedir}/*
@ -387,7 +397,7 @@ rm -rf $RPM_BUILD_ROOT
%files -f %{name}.lang
%defattr(-,root,root)
%doc %{_docdir}/%{name}
%doc %{_docdir}/examples
%doc %{_docdir}/%{name}/examples
%{_libdir}/ladspa
%{_bindir}/*
%{_datadir}/ladspa

View File

@ -1,221 +0,0 @@
--- src/plugins/sine.cpp-dist 2005-10-04 16:29:44.000000000 +0200
+++ src/plugins/sine.cpp 2005-10-05 12:13:25.000000000 +0200
@@ -31,6 +31,8 @@
#define OSC_AMPLITUDE 1
#define OSC_OUTPUT 2
+namespace ladspa_sdk_sine {
+
/*****************************************************************************/
/* Sine table size is given by (1<<SINE_TABLE_BITS). */
@@ -92,99 +94,123 @@
}
friend LADSPA_Handle instantiateSineOscillator(const LADSPA_Descriptor *,
- unsigned long SampleRate) {
- return new SineOscillator(SampleRate);
- }
-
+ unsigned long SampleRate);
friend void connectPortToSineOscillator(LADSPA_Handle Instance,
unsigned long Port,
- LADSPA_Data * DataLocation) {
- switch (Port) {
- case OSC_FREQUENCY:
- ((SineOscillator *)Instance)->m_pfFrequency = DataLocation;
- break;
- case OSC_AMPLITUDE:
- ((SineOscillator *)Instance)->m_pfAmplitude = DataLocation;
- break;
- case OSC_OUTPUT:
- ((SineOscillator *)Instance)->m_pfOutput = DataLocation;
- break;
- }
- }
+ LADSPA_Data * DataLocation);
+ friend void activateSineOscillator(void * pvHandle);
+ friend void runSineOscillator_FreqAudio_AmpAudio(LADSPA_Handle Instance,
+ unsigned long SampleCount);
+ friend void runSineOscillator_FreqAudio_AmpCtrl(LADSPA_Handle Instance,
+ unsigned long SampleCount);
+ friend void runSineOscillator_FreqCtrl_AmpAudio(LADSPA_Handle Instance,
+ unsigned long SampleCount);
+ friend void runSineOscillator_FreqCtrl_AmpCtrl(LADSPA_Handle Instance,
+ unsigned long SampleCount);
+ friend void cleanupSineOscillator(void *pvHandle);
- friend void activateSineOscillator(void * pvHandle) {
- ((SineOscillator *)pvHandle)->m_lPhase = 0;
- }
+};
- friend void runSineOscillator_FreqAudio_AmpAudio(LADSPA_Handle Instance,
- unsigned long SampleCount) {
- SineOscillator * poSineOscillator = (SineOscillator *)Instance;
- for (unsigned long lIndex = 0; lIndex < SampleCount; lIndex++) {
- /* Extract frequency at this point to guarantee inplace
- support. */
- LADSPA_Data fFrequency
- = (poSineOscillator->m_pfFrequency[lIndex]);
- poSineOscillator->m_pfOutput[lIndex]
- = (g_pfSineTable[poSineOscillator->m_lPhase >> SINE_TABLE_SHIFT]
- * poSineOscillator->m_pfAmplitude[lIndex]);
- poSineOscillator->setPhaseStepFromFrequency(fFrequency);
- poSineOscillator->m_lPhase
- += poSineOscillator->m_lPhaseStep;
- }
+LADSPA_Handle instantiateSineOscillator(const LADSPA_Descriptor *,
+ unsigned long SampleRate)
+{
+ return new SineOscillator(SampleRate);
+}
+
+void connectPortToSineOscillator(LADSPA_Handle Instance,
+ unsigned long Port,
+ LADSPA_Data * DataLocation)
+{
+ switch (Port) {
+ case OSC_FREQUENCY:
+ ((SineOscillator *)Instance)->m_pfFrequency = DataLocation;
+ break;
+ case OSC_AMPLITUDE:
+ ((SineOscillator *)Instance)->m_pfAmplitude = DataLocation;
+ break;
+ case OSC_OUTPUT:
+ ((SineOscillator *)Instance)->m_pfOutput = DataLocation;
+ break;
}
+}
- friend void runSineOscillator_FreqAudio_AmpCtrl(LADSPA_Handle Instance,
- unsigned long SampleCount) {
- SineOscillator * poSineOscillator = (SineOscillator *)Instance;
- LADSPA_Data fAmplitude = *(poSineOscillator->m_pfAmplitude);
- for (unsigned long lIndex = 0; lIndex < SampleCount; lIndex++) {
- /* Extract frequency at this point to guarantee inplace
- support. */
- LADSPA_Data fFrequency
- = (poSineOscillator->m_pfFrequency[lIndex]);
- poSineOscillator->m_pfOutput[lIndex]
- = (g_pfSineTable[poSineOscillator->m_lPhase >> SINE_TABLE_SHIFT]
- * fAmplitude);
- poSineOscillator->setPhaseStepFromFrequency(fFrequency);
- poSineOscillator->m_lPhase
- += poSineOscillator->m_lPhaseStep;
- }
+void activateSineOscillator(void * pvHandle)
+{
+ ((SineOscillator *)pvHandle)->m_lPhase = 0;
+}
+
+void runSineOscillator_FreqAudio_AmpAudio(LADSPA_Handle Instance,
+ unsigned long SampleCount)
+{
+ SineOscillator * poSineOscillator = (SineOscillator *)Instance;
+ for (unsigned long lIndex = 0; lIndex < SampleCount; lIndex++) {
+ /* Extract frequency at this point to guarantee inplace
+ support. */
+ LADSPA_Data fFrequency
+ = (poSineOscillator->m_pfFrequency[lIndex]);
+ poSineOscillator->m_pfOutput[lIndex]
+ = (g_pfSineTable[poSineOscillator->m_lPhase >> SINE_TABLE_SHIFT]
+ * poSineOscillator->m_pfAmplitude[lIndex]);
+ poSineOscillator->setPhaseStepFromFrequency(fFrequency);
+ poSineOscillator->m_lPhase
+ += poSineOscillator->m_lPhaseStep;
}
+}
- friend void runSineOscillator_FreqCtrl_AmpAudio(LADSPA_Handle Instance,
- unsigned long SampleCount) {
- SineOscillator * poSineOscillator = (SineOscillator *)Instance;
- poSineOscillator->setPhaseStepFromFrequency
- (*(poSineOscillator->m_pfFrequency));
- for (unsigned long lIndex = 0; lIndex < SampleCount; lIndex++) {
- poSineOscillator->m_pfOutput[lIndex]
- = (g_pfSineTable[poSineOscillator->m_lPhase >> SINE_TABLE_SHIFT]
- * poSineOscillator->m_pfAmplitude[lIndex]);
- poSineOscillator->m_lPhase
- += poSineOscillator->m_lPhaseStep;
- }
+void runSineOscillator_FreqAudio_AmpCtrl(LADSPA_Handle Instance,
+ unsigned long SampleCount)
+{
+ SineOscillator * poSineOscillator = (SineOscillator *)Instance;
+ LADSPA_Data fAmplitude = *(poSineOscillator->m_pfAmplitude);
+ for (unsigned long lIndex = 0; lIndex < SampleCount; lIndex++) {
+ /* Extract frequency at this point to guarantee inplace
+ support. */
+ LADSPA_Data fFrequency
+ = (poSineOscillator->m_pfFrequency[lIndex]);
+ poSineOscillator->m_pfOutput[lIndex]
+ = (g_pfSineTable[poSineOscillator->m_lPhase >> SINE_TABLE_SHIFT]
+ * fAmplitude);
+ poSineOscillator->setPhaseStepFromFrequency(fFrequency);
+ poSineOscillator->m_lPhase
+ += poSineOscillator->m_lPhaseStep;
}
+}
- friend void runSineOscillator_FreqCtrl_AmpCtrl(LADSPA_Handle Instance,
- unsigned long SampleCount) {
- SineOscillator * poSineOscillator = (SineOscillator *)Instance;
- LADSPA_Data fAmplitude = *(poSineOscillator->m_pfAmplitude);
- poSineOscillator->setPhaseStepFromFrequency
- (*(poSineOscillator->m_pfFrequency));
- for (unsigned long lIndex = 0; lIndex < SampleCount; lIndex++) {
- poSineOscillator->m_pfOutput[lIndex]
- = (g_pfSineTable[poSineOscillator->m_lPhase >> SINE_TABLE_SHIFT]
- * fAmplitude);
- poSineOscillator->m_lPhase
- += poSineOscillator->m_lPhaseStep;
- }
+void runSineOscillator_FreqCtrl_AmpAudio(LADSPA_Handle Instance,
+ unsigned long SampleCount)
+{
+ SineOscillator * poSineOscillator = (SineOscillator *)Instance;
+ poSineOscillator->setPhaseStepFromFrequency
+ (*(poSineOscillator->m_pfFrequency));
+ for (unsigned long lIndex = 0; lIndex < SampleCount; lIndex++) {
+ poSineOscillator->m_pfOutput[lIndex]
+ = (g_pfSineTable[poSineOscillator->m_lPhase >> SINE_TABLE_SHIFT]
+ * poSineOscillator->m_pfAmplitude[lIndex]);
+ poSineOscillator->m_lPhase
+ += poSineOscillator->m_lPhaseStep;
}
+}
- friend void cleanupSineOscillator(void *pvHandle) {
- delete (SineOscillator *)pvHandle;
+void runSineOscillator_FreqCtrl_AmpCtrl(LADSPA_Handle Instance,
+ unsigned long SampleCount)
+{
+ SineOscillator * poSineOscillator = (SineOscillator *)Instance;
+ LADSPA_Data fAmplitude = *(poSineOscillator->m_pfAmplitude);
+ poSineOscillator->setPhaseStepFromFrequency
+ (*(poSineOscillator->m_pfFrequency));
+ for (unsigned long lIndex = 0; lIndex < SampleCount; lIndex++) {
+ poSineOscillator->m_pfOutput[lIndex]
+ = (g_pfSineTable[poSineOscillator->m_lPhase >> SINE_TABLE_SHIFT]
+ * fAmplitude);
+ poSineOscillator->m_lPhase
+ += poSineOscillator->m_lPhaseStep;
}
+}
-};
+void cleanupSineOscillator(void *pvHandle)
+{
+ delete (SineOscillator *)pvHandle;
+}
/*****************************************************************************/
@@ -368,4 +394,6 @@
/*****************************************************************************/
+}
+
/* EOF */

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a9a65c9c80ef178f9effe05217eff13ce7c51e87125d123de538b817108bcd0d
size 65275

3
ladspa_sdk_1.13.tar.bz2 Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ffdeae3f5130560224573e4f2536daeec6c8c9482e0066104421063799fa32e7
size 65417

View File

@ -1,32 +0,0 @@
--- Plugins.cc-dist 2005-04-11 11:47:09.848541196 +0200
+++ Plugins.cc 2005-04-11 11:48:10.464429484 +0200
@@ -177,7 +177,8 @@ Exaggerate::port_info [] =
}
};
-Descriptor<Exaggerate>::Descriptor<Exaggerate>()
+template <>
+Descriptor<Exaggerate>::Descriptor()
{
UniqueID = 1791;
Label = "Exaggerate";
@@ -345,7 +346,8 @@ Transpose::port_info [] =
}
};
-Descriptor<Transpose>::Descriptor<Transpose>()
+template <>
+Descriptor<Transpose>::Descriptor()
{
UniqueID = 1792;
Label = "Transpose";
@@ -496,7 +498,8 @@ Accumulate::port_info [] =
}
};
-Descriptor<Accumulate>::Descriptor<Accumulate>()
+template <>
+Descriptor<Accumulate>::Descriptor()
{
UniqueID = 1793;
Label = "Accumulate";

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:4ab20d2ea6415afef5a76e21ad004496f57ac0546016e2429bc43f951924acc2
size 39828

3
pvoc_0.1.12.tar.bz2 Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:cd35efa60fd7a55fc974a19efd8e800a53cbd606ff5a7205434bfebe9ae68e25
size 39966

30
swh-configure-2.65.patch Normal file
View File

@ -0,0 +1,30 @@
Index: swh-plugins-0.4.15/configure
===================================================================
--- swh-plugins-0.4.15.orig/configure
+++ swh-plugins-0.4.15/configure
@@ -767,6 +767,7 @@ GMSGFMT
MSGFMT
GETTEXT_MACRO_VERSION
USE_NLS
+MKINSTALLDIRS
CPP
OTOOL64
OTOOL
@@ -11223,6 +11224,17 @@ fi
ALL_LINGUAS="en_GB"
+ MKINSTALLDIRS=
+ if test -n "$ac_aux_dir"; then
+ case "$ac_aux_dir" in
+ /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
+ *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
+ esac
+ fi
+ if test -z "$MKINSTALLDIRS"; then
+ MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
+ fi
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
$as_echo_n "checking whether NLS is requested... " >&6; }
# Check whether --enable-nls was given.

30
swh-configure.patch Normal file
View File

@ -0,0 +1,30 @@
Index: swh-plugins-0.4.15/configure
===================================================================
--- swh-plugins-0.4.15.orig/configure
+++ swh-plugins-0.4.15/configure
@@ -811,6 +811,7 @@ GMSGFMT
MSGFMT
GETTEXT_MACRO_VERSION
USE_NLS
+MKINSTALLDIRS
CPP
OTOOL64
OTOOL
@@ -12121,6 +12122,17 @@ fi
ALL_LINGUAS="en_GB"
+ MKINSTALLDIRS=
+ if test -n "$ac_aux_dir"; then
+ case "$ac_aux_dir" in
+ /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
+ *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
+ esac
+ fi
+ if test -z "$MKINSTALLDIRS"; then
+ MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
+ fi
+
{ $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
$as_echo_n "checking whether NLS is requested... " >&6; }
# Check whether --enable-nls was given.

12
swh-libblo.dif Normal file
View File

@ -0,0 +1,12 @@
Index: swh-plugins-0.4.15/configure.in
===================================================================
--- swh-plugins-0.4.15.orig/configure.in
+++ swh-plugins-0.4.15/configure.in
@@ -49,6 +50,7 @@ AC_PROG_LIBTOOL
AC_LANG_C
AC_PROG_CC
+AM_PROG_CC_C_O
AC_REQUIRE_CPP
ALL_LINGUAS="en_GB"
AM_GNU_GETTEXT([external])

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6d0e245e0fd70d9a3c9e18f7dcd5ca50b51ab394afbab780959da6af48aa3d84
size 51422

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d6c96dbbabb7a5c6360895db5aa95788ad2940fff1f9e851722dda70338012f5
size 52129

View File

@ -1,16 +1,17 @@
--- tap_utils.h-dist 2004-03-05 15:44:58.000000000 +0100
Index: tap-plugins-0.7.1/tap_utils.h
===================================================================
--- tap_utils.h
+++ tap_utils.h 2004-03-05 15:45:53.000000000 +0100
@@ -92,7 +92,14 @@
@@ -95,6 +95,14 @@ for any bugs or malfunction. */
#define LN_2_2 0.34657359f
-#define FLUSH_TO_ZERO(x) (((*(unsigned int*)&(x))&0x7f800000)==0)?0.0f:(x)
+static inline float FLUSH_TO_ZERO(float fv) {
+ union {
+ float f;
+ int i;
+ } v;
+ v.f = fv;
+ } v;
+ v.f = fv;
+ return (v.i & 0x7f800000) == 0 ?0.0f : fv;
+}
#define LIMIT(v,l,u) ((v)<(l)?(l):((v)>(u)?(u):(v)))

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:04d6698e4cf0f61d05cc9f104015040e3c1f568f91985515144146fea6ef78d9
size 4665

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e1a6a70b64b9d1fdd62c1eb6a1a2ba18113232b09cf3dedb1c326fc3e2b9db23
size 4774