SHA256
1
0
forked from pool/ladspa

Accepting request 24535 from multimedia:libs

Copy from multimedia:libs/ladspa based on submit request 24535 from user tiwai

OBS-URL: https://build.opensuse.org/request/show/24535
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ladspa?expand=0&rev=7
This commit is contained in:
OBS User autobuild 2009-11-16 17:47:14 +00:00 committed by Git OBS Bridge
parent a275669ae0
commit 4130d812d5
4 changed files with 53 additions and 2 deletions

43
blop-wdautil-fix.diff Normal file
View File

@ -0,0 +1,43 @@
---
src/wdatutil.c | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
--- a/src/wdatutil.c
+++ b/src/wdatutil.c
@@ -269,13 +269,13 @@
/*
* Fixed data and tables
*/
- fprintf (wdat_fp, "unsigned long ref_count = 0;\n");
- fprintf (wdat_fp, "unsigned long first_sample_rate = 0;\n");
- fprintf (wdat_fp, "unsigned long table_count = %ld;\n", table_count);
- fprintf (wdat_fp, "Wavetable tables[%ld];\n", table_count);
- fprintf (wdat_fp, "Wavetable * ptables[%ld];\n", table_count);
- fprintf (wdat_fp, "unsigned long lookup[%ld];\n", w->lookup_max + 1);
- fprintf (wdat_fp, "unsigned long lookup_max = %ld;\n", w->lookup_max);
+ fprintf (wdat_fp, "static unsigned long ref_count = 0;\n");
+ fprintf (wdat_fp, "static unsigned long first_sample_rate = 0;\n");
+ fprintf (wdat_fp, "static unsigned long table_count = %ld;\n", table_count);
+ fprintf (wdat_fp, "static Wavetable tables[%ld];\n", table_count);
+ fprintf (wdat_fp, "static Wavetable * ptables[%ld];\n", table_count);
+ fprintf (wdat_fp, "static unsigned long lookup[%ld];\n", w->lookup_max + 1);
+ fprintf (wdat_fp, "static unsigned long lookup_max = %ld;\n", w->lookup_max);
fprintf (wdat_fp, "\n");
/*
* Sample data
@@ -326,13 +326,13 @@
fprintf (wdat_fp, "\n");
}
- fprintf (wdat_fp, "LADSPA_Data samples_zero[%ld];\n", t->sample_count + 3);
+ fprintf (wdat_fp, "static LADSPA_Data samples_zero[%ld];\n", t->sample_count + 3);
fprintf (wdat_fp, "\n");
/*
* Function to get Wavedata - the sample rate is needed to calculate
* frequencies and related things
*/
- fprintf (wdat_fp, "int\n");
+ fprintf (wdat_fp, "static int\n");
fprintf (wdat_fp, "blop_get_%s (Wavedata * w, unsigned long sample_rate)\n", data_name);
fprintf (wdat_fp, "{\n");
fprintf (wdat_fp, "\tWavetable * t;\n");

View File

@ -21,7 +21,7 @@
Name: ladspa-devel
Summary: Include Files mandatory for Development.
Version: 1.12.code10.3
Release: 103
Release: 104
License: GPL v2 or later
Group: Development/Libraries/C and C++
Source: ladspa_sdk_1.12.tar.bz2

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Nov 10 20:22:43 CET 2009 - tiwai@suse.de
- make static varibles in some blop plugins (possible fix for
bnc#553647)
-------------------------------------------------------------------
Mon Nov 2 15:53:13 CET 2009 - tiwai@suse.de

View File

@ -38,7 +38,7 @@ BuildRequires: fdupes fftw-devel fftw3-devel flac-devel gcc-c++ ladspa-devel li
%define blepvco_version 0.1.0
Summary: The Linux Audio Developer's Simple Plug-In API
Version: 1.12.code10.3.1
Release: 117
Release: 118
License: GPL v2 or later
Group: Development/Libraries/C and C++
AutoReq: on
@ -92,6 +92,7 @@ Patch22: alienwah-compile-fix.diff
Patch23: alienwah-float_complex.diff
Patch25: pvoc-0.1.10-depend-copts-fix.diff
Patch26: swh-nostatic-lib.diff
Patch27: blop-wdautil-fix.diff
Url: http://www.ladspa.org/
BuildRoot: %{_tmppath}/%{name}-%{version}-build
@ -149,6 +150,7 @@ Authors:
(cd blop-%{blop_version}
%patch5
%patch6
%patch27 -p1
)
(cd vcf-%{vcf_version}
%patch7