summaryrefslogtreecommitdiff
path: root/ladspa/ladspa-1.13.patch
blob: 04dd90afb8f9bf41e992711ffc75eab02f4928d0 (plain)
    1 diff -pruN ladspa_sdk.orig/src/makefile ladspa_sdk/src/makefile
    2 --- ladspa_sdk.orig/src/makefile	2007-11-06 23:33:34.000000000 +1100
    3 +++ ladspa_sdk/src/makefile	2007-11-06 23:58:27.000000000 +1100
    4 @@ -4,9 +4,9 @@
    5  #
    6  # Change these if you want to install somewhere else.
    7  
    8 -INSTALL_PLUGINS_DIR	=	/usr/lib/ladspa/
    9 -INSTALL_INCLUDE_DIR	=	/usr/include/
   10 -INSTALL_BINARY_DIR	=	/usr/bin/
   11 +INSTALL_PLUGINS_DIR	=	$(DESTDIR)/usr/lib/ladspa/
   12 +INSTALL_INCLUDE_DIR	=	$(DESTDIR)/usr/include/
   13 +INSTALL_BINARY_DIR	=	$(DESTDIR)/usr/bin/
   14  
   15  ###############################################################################
   16  #
   17 @@ -15,7 +15,7 @@ INSTALL_BINARY_DIR	=	/usr/bin/
   18  
   19  INCLUDES	=	-I.
   20  LIBRARIES	=	-ldl -lm
   21 -CFLAGS		=	$(INCLUDES) -Wall -Werror -O3 -fPIC
   22 +CFLAGS		=	$(INCLUDES) -Wall -Werror -fPIC @CFLAGS@
   23 -CXXFLAGS	=	$(CFLAGS)
   24 +CXXFLAGS	=	$(INCLUDES) -Wall -Werror -fPIC @CXXFLAGS@
   25  PLUGINS		=	../plugins/amp.so				\
   26  			../plugins/delay.so				\
   27 @@ -46,22 +46,22 @@ CPP		=	c++
   28  # TARGETS
   29  #
   30  
   31 -test:	/tmp/test.wav ../snd/noise.wav always
   32 -	@echo ---------------------------------------------
   33 -	@echo First listen to the white noise input signal:
   34 -	@echo ---------------------------------------------
   35 -	-sndfile-play ../snd/noise.wav
   36 -	@echo -------------------------
   37 -	@echo Compare to plugin output.
   38 -	@echo -------------------------
   39 -	@echo Should be a noise band around 6000Hz, repeated quietly after 1s.
   40 -	-sndfile-play /tmp/test.wav
   41 -	@echo Test complete.
   42 +test:
   43 +#	@echo ---------------------------------------------
   44 +#	@echo First listen to the white noise input signal:
   45 +#	@echo ---------------------------------------------
   46 +#	-sndfile-play ../snd/noise.wav
   47 +#	@echo -------------------------
   48 +#	@echo Compare to plugin output.
   49 +#	@echo -------------------------
   50 +#	@echo Should be a noise band around 6000Hz, repeated quietly after 1s.
   51 +#	-sndfile-play /tmp/test.wav
   52 +#	@echo Test complete.
   53  
   54  install:	targets
   55 -	-mkdirhier $(INSTALL_PLUGINS_DIR)
   56 -	-mkdirhier $(INSTALL_INCLUDE_DIR)
   57 -	-mkdirhier $(INSTALL_BINARY_DIR)
   58 +	install -d $(INSTALL_PLUGINS_DIR)
   59 +	install -d $(INSTALL_INCLUDE_DIR)
   60 +	install -d $(INSTALL_BINARY_DIR)
   61  	cp ../plugins/* $(INSTALL_PLUGINS_DIR)
   62  	cp ladspa.h $(INSTALL_INCLUDE_DIR)
   63  	cp ../bin/* $(INSTALL_BINARY_DIR)
   64 diff -pruN ladspa_sdk.orig/src/plugins/sine.cpp ladspa_sdk/src/plugins/sine.cpp
   65 --- ladspa_sdk.orig/src/plugins/sine.cpp	2007-11-06 23:33:34.000000000 +1100
   66 +++ ladspa_sdk/src/plugins/sine.cpp	2007-11-06 23:59:26.000000000 +1100
   67 @@ -68,6 +68,15 @@ initialise_sine_table() {
   68  
   69  /*****************************************************************************/
   70  
   71 +LADSPA_Handle instantiateSineOscillator(const LADSPA_Descriptor *, unsigned long SampleRate);
   72 +void connectPortToSineOscillator(LADSPA_Handle Instance, unsigned long Port, LADSPA_Data * DataLocation);
   73 +void activateSineOscillator(void * pvHandle);
   74 +void runSineOscillator_FreqAudio_AmpAudio(LADSPA_Handle Instance, unsigned long SampleCount);
   75 +void runSineOscillator_FreqAudio_AmpCtrl(LADSPA_Handle Instance, unsigned long SampleCount);
   76 +void runSineOscillator_FreqCtrl_AmpAudio(LADSPA_Handle Instance, unsigned long SampleCount);
   77 +void runSineOscillator_FreqCtrl_AmpCtrl(LADSPA_Handle Instance, unsigned long SampleCount);
   78 +void cleanupSineOscillator(void *pvHandle);
   79 +
   80  class SineOscillator {
   81  private:
   82  

Generated by cgit