summaryrefslogtreecommitdiff
path: root/ladspa/ladspa-1.12.patch
blob: 831e456997832de7e0469ea128346c22aef82f94 (plain)
    1 diff -ru ladspa_sdk-orig/src/makefile ladspa_sdk/src/makefile
    2 --- ladspa_sdk-orig/src/makefile	2007-04-01 09:58:07.000000000 +1000
    3 +++ ladspa_sdk/src/makefile	2007-04-01 10:00:34.000000000 +1000
    4 @@ -5,9 +5,9 @@
    5  # Change these if you want to install somewhere else. In particularly
    6  # you may wish to remove the middle "local/" part of each entry.
    7  
    8 -INSTALL_PLUGINS_DIR	=	/usr/local/lib/ladspa/
    9 -INSTALL_INCLUDE_DIR	=	/usr/include/
   10 -INSTALL_BINARY_DIR	=	/usr/local/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 @@ -16,7 +16,7 @@
   18  
   19  INCLUDES	=	-I.
   20  LIBRARIES	=	-ldl -lm
   21 -CFLAGS		=	$(INCLUDES) -Wall -Werror -O3 -fPIC
   22 +CFLAGS		+=	$(INCLUDES) -Wall -Werror -fPIC
   23  CXXFLAGS	=	$(CFLAGS)
   24  PLUGINS		=	../plugins/amp.so				\
   25  			../plugins/delay.so				\
   26 @@ -47,19 +47,20 @@
   27  # TARGETS
   28  #
   29  
   30 -test:	/tmp/test.wav ../snd/noise.wav always
   31 -	@echo ---------------------------------------------
   32 -	@echo First listen to the white noise input signal:
   33 -	@echo ---------------------------------------------
   34 -	play ../snd/noise.wav
   35 -	@echo -------------------------
   36 -	@echo Compare to plugin output.
   37 -	@echo -------------------------
   38 -	@echo Should be a noise band around 6000Hz, repeated quietly after 1s.
   39 -	play /tmp/test.wav
   40 +test:
   41 +# /tmp/test.wav ../snd/noise.wav always
   42 +# 	@echo ---------------------------------------------
   43 +# 	@echo First listen to the white noise input signal:
   44 +# 	@echo ---------------------------------------------
   45 +# 	play ../snd/noise.wav
   46 +# 	@echo -------------------------
   47 +# 	@echo Compare to plugin output.
   48 +# 	@echo -------------------------
   49 +# 	@echo Should be a noise band around 6000Hz, repeated quietly after 1s.
   50 +# 	play /tmp/test.wav
   51  
   52  install:	targets
   53 -	-mkdirhier	$(INSTALL_PLUGINS_DIR)				\
   54 +	mkdir -p	$(INSTALL_PLUGINS_DIR)				\
   55  			$(INSTALL_INCLUDE_DIR)				\
   56  			$(INSTALL_BINARY_DIR)
   57  	cp ../plugins/* $(INSTALL_PLUGINS_DIR)
   58 @@ -123,4 +124,3 @@
   59  	tar czf `date '+../backup/ladspa_sdk.%Y%m%d%H%M.tgz'` ladspa_sdk/)
   60  
   61  ###############################################################################
   62 -
   63 diff -ru ladspa_sdk-orig/src/plugins/sine.cpp ladspa_sdk/src/plugins/sine.cpp
   64 --- ladspa_sdk-orig/src/plugins/sine.cpp	2007-04-01 09:58:07.000000000 +1000
   65 +++ ladspa_sdk/src/plugins/sine.cpp	2007-04-01 10:04:33.000000000 +1000
   66 @@ -59,6 +59,15 @@
   67  
   68  /*****************************************************************************/
   69  
   70 +LADSPA_Handle instantiateSineOscillator(const LADSPA_Descriptor *, unsigned long SampleRate);
   71 +void connectPortToSineOscillator(LADSPA_Handle Instance, unsigned long Port, LADSPA_Data * DataLocation);
   72 +void activateSineOscillator(void * pvHandle);
   73 +void runSineOscillator_FreqAudio_AmpAudio(LADSPA_Handle Instance, unsigned long SampleCount);
   74 +void runSineOscillator_FreqAudio_AmpCtrl(LADSPA_Handle Instance, unsigned long SampleCount);
   75 +void runSineOscillator_FreqCtrl_AmpAudio(LADSPA_Handle Instance, unsigned long SampleCount);
   76 +void runSineOscillator_FreqCtrl_AmpCtrl(LADSPA_Handle Instance, unsigned long SampleCount);
   77 +void cleanupSineOscillator(void *pvHandle);
   78 +
   79  class SineOscillator {
   80  private:
   81  

Generated by cgit