Sebastian, there is good news and bad news, and it is that I can't reproduce your failure, though I slightly changed the source code to incorporate the changes we've already discussed and to make the plugin less dependent on 'swh' plugins. Also, instead of _init, _fini I'm now using, as suggested by documentation on shared libraries, static void __attribute__ ((constructor)) my_init(void) static void __attribute__ ((destructor)) my_fini(void) Please find attached mbeq_119700.c.before_PerlPreProcessor.gz file - compare it with what you have if you wish. Please find below the protocol of my actions and please see that output file is generated, there is no segmentation fault, exit status is 0. Please pay attention to the following: Build commands: --------------- 1) \rm -r .PerlPreProcWS/ ; ./PerlPreProcessor -config_hash_file PerlPreProcessorConfigHash.c++.prl mbeq_119700.c.before_PerlPreProcessor > mbeq_119700.c 2) gcc -I/AppsFromScratchWD/install/fftw-3.1.2/include -DFFTW3 -O2 -msse -mfpmath=sse -fPIC -DPIC -g -c -Wall mbeq_119700.c -o mbeq_119700.o 3) gcc -lrt -lm /maxtor5/sergei/AppsFromScratchWD/install/fftw-3.1.2/lib/libfftw3f.so -shared mbeq_119700.o -Wl,-soname,mbeq_119700.so -o mbeq_119700.s . - please pay attention to -I/AppsFromScratchWD/install/fftw-3.1.2/include /maxtor5/sergei/AppsFromScratchWD/install/fftw-3.1.2/lib/libfftw3f.so items - I have locally built SSE-enabled FFTW3 library. The build commands are now much easier than they used to be. It is easy to build SSE-enabled FFTW3 library - download ftp://ftp.fftw.org/pub/fftw/fftw-3.1.2.tar.gz , unpackage the tarball, and run ./configure --prefix=/your/install/path --enable-shared --enable-float --enable-sse make make check make install The "/your/install/path" is, of course, moral equivalent of my "/maxtor5/sergei/AppsFromScratchWD/install". . Invoking ('csh' syntax): ------------------------ (setenv LADSPA_PATH `pwd` ; applyplugin input.wav out.wav ./mbeq_119700.so MChMBEq 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0) ; echo $status Regards, Sergei. The protocol of my actions: [343] 14:56 sergei@amdam2:/ibm/home/sergei/debug_mbeq_119700/swh-plugins-0.4.11> \rm -r .PerlPreProcWS/ ; ./PerlPreProcessor -config_hash_file PerlPreProcessorConfigHash.c++.prl mbeq_119700.c.before_PerlPreProcessor > mbeq_119700.c PerlPreProcessor - Copyright 2001 Sergei Steshenko. This program is free software (GNU General Public License). PerlPreProcessor : INFO : BEGINNING OF processing files from command line executing => \mkdir -p .PerlPreProcWS PerlPreProcessor : INFO : STARTED processing 'mbeq_119700.c.before_PerlPreProcessor' file @frequencies=20 28.2842712474619 40 50.3968419957949 63.496042078728 80 100.79368399159 126.992084157456 160 201.58736798318 253.984168314912 320 403.174735966359 507.968336629824 640 806.349471932719 1015.93667325965 1280 1612.69894386544 2031.8733465193 2560 3225.39788773088 4063.74669303859 5120 6450.79577546175 8127.49338607718 10240 12901.5915509235 16254.9867721544 20480 at .PerlPreProcWS/___USER_SUB___.amdam2.4951.00.0000.prl line 51, <GEN0> line 120. $ascii_band=00 $band=20 $ascii_band=01 $band=28.2842712474619 $ascii_band=02 $band=40 $ascii_band=03 $band=50.3968419957949 $ascii_band=04 $band=63.496042078728 $ascii_band=05 $band=80 $ascii_band=06 $band=100.79368399159 $ascii_band=07 $band=126.992084157456 $ascii_band=08 $band=160 $ascii_band=09 $band=201.58736798318 $ascii_band=10 $band=253.984168314912 $ascii_band=11 $band=320 $ascii_band=12 $band=403.174735966359 $ascii_band=13 $band=507.968336629824 $ascii_band=14 $band=640 $ascii_band=15 $band=806.349471932719 $ascii_band=16 $band=1015.93667325965 $ascii_band=17 $band=1280 $ascii_band=18 $band=1612.69894386544 $ascii_band=19 $band=2031.8733465193 $ascii_band=20 $band=2560 $ascii_band=21 $band=3225.39788773088 $ascii_band=22 $band=4063.74669303859 $ascii_band=23 $band=5120 $ascii_band=24 $band=6450.79577546175 $ascii_band=25 $band=8127.49338607718 $ascii_band=26 $band=10240 $ascii_band=27 $band=12901.5915509235 $ascii_band=28 $band=16254.9867721544 $ascii_band=29 $band=20480 PerlPreProcessor : INFO : FINISHED processing 'mbeq_119700.c.before_PerlPreProcessor' file PerlPreProcessor : INFO : END OF processing files from command line [344] 14:58 sergei@amdam2:/ibm/home/sergei/debug_mbeq_119700/swh-plugins-0.4.11> gcc -I/AppsFromScratchWD/install/fftw-3.1.2/include -DFFTW3 -O2 -msse -mfpmath=sse -fPIC -DPIC -g -c -Wall mbeq_119700.c -o mbeq_119700.o mbeq_119700.c: In function ‘runMChMBEq’: mbeq_119700.c:3575: warning: operation on ‘comp_rp_ptr_L’ may be undefined mbeq_119700.c:3576: warning: operation on ‘comp_ip_ptr_L’ may be undefined mbeq_119700.c:3578: warning: operation on ‘comp_rp_ptr_R’ may be undefined mbeq_119700.c:3579: warning: operation on ‘comp_ip_ptr_R’ may be undefined [345] 14:58 sergei@amdam2:/ibm/home/sergei/debug_mbeq_119700/swh-plugins-0.4.11> gcc -lrt -lm /maxtor5/sergei/AppsFromScratchWD/install/fftw-3.1.2/lib/libfftw3f.so -shared mbeq_119700.o -Wl,-soname,mbeq_119700.so -o mbeq_119700.so [346] 14:59 sergei@amdam2:/ibm/home/sergei/debug_mbeq_119700/swh-plugins-0.4.11> \rm out.wav [347] 14:59 sergei@amdam2:/ibm/home/sergei/debug_mbeq_119700/swh-plugins-0.4.11> (setenv LADSPA_PATH `pwd` ; applyplugin /ibm/home/sergei/bq_multiband_equalizer.20061006/C/track01.cdda.wav out.wav ./mbeq_119700.so MChMBEq 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ) ladspa_descriptor: returning MChMBEqDescriptor=0804e0c0 instantiateMChMBEq :INFO: actual 00 band bin number: 2 frequency: 21.5332Hz instantiateMChMBEq :INFO: actual 01 band bin number: 3 frequency: 32.2998Hz instantiateMChMBEq :INFO: actual 02 band bin number: 4 frequency: 43.0664Hz instantiateMChMBEq :INFO: actual 03 band bin number: 5 frequency: 53.833Hz instantiateMChMBEq :INFO: actual 04 band bin number: 6 frequency: 64.5996Hz instantiateMChMBEq :INFO: actual 05 band bin number: 7 frequency: 75.3662Hz instantiateMChMBEq :INFO: actual 06 band bin number: 9 frequency: 96.8994Hz instantiateMChMBEq :INFO: actual 07 band bin number: 12 frequency: 129.199Hz instantiateMChMBEq :INFO: actual 08 band bin number: 15 frequency: 161.499Hz instantiateMChMBEq :INFO: actual 09 band bin number: 19 frequency: 204.565Hz instantiateMChMBEq :INFO: actual 10 band bin number: 24 frequency: 258.398Hz instantiateMChMBEq :INFO: actual 11 band bin number: 30 frequency: 322.998Hz instantiateMChMBEq :INFO: actual 12 band bin number: 37 frequency: 398.364Hz instantiateMChMBEq :INFO: actual 13 band bin number: 47 frequency: 506.03Hz instantiateMChMBEq :INFO: actual 14 band bin number: 59 frequency: 635.229Hz instantiateMChMBEq :INFO: actual 15 band bin number: 75 frequency: 807.495Hz instantiateMChMBEq :INFO: actual 16 band bin number: 94 frequency: 1012.06Hz instantiateMChMBEq :INFO: actual 17 band bin number: 119 frequency: 1281.23Hz instantiateMChMBEq :INFO: actual 18 band bin number: 150 frequency: 1614.99Hz instantiateMChMBEq :INFO: actual 19 band bin number: 189 frequency: 2034.89Hz instantiateMChMBEq :INFO: actual 20 band bin number: 238 frequency: 2562.45Hz instantiateMChMBEq :INFO: actual 21 band bin number: 300 frequency: 3229.98Hz instantiateMChMBEq :INFO: actual 22 band bin number: 377 frequency: 4059.01Hz instantiateMChMBEq :INFO: actual 23 band bin number: 476 frequency: 5124.9Hz instantiateMChMBEq :INFO: actual 24 band bin number: 599 frequency: 6449.19Hz instantiateMChMBEq :INFO: actual 25 band bin number: 755 frequency: 8128.78Hz instantiateMChMBEq :INFO: actual 26 band bin number: 951 frequency: 10239Hz instantiateMChMBEq :INFO: actual 27 band bin number: 1198 frequency: 12898.4Hz instantiateMChMBEq :INFO: actual 28 band bin number: 1510 frequency: 16257.6Hz instantiateMChMBEq :INFO: actual 29 band bin number: 1902 frequency: 20478.1Hz instantiateMChMBEq - __LINE__=1549 (*plugin_data).half_fft_length=2048 activateMChMBEq: instance=08056770 Peak output: 26010 [348] 15:01 sergei@amdam2:/ibm/home/sergei/debug_mbeq_119700/swh-plugins-0.4.11> ls -ltr total 54896 -rw-r--r-- 1 sergei users 720 2003-12-18 06:40 PerlPreProcessorConfigHash.c++.prl -r-xr-xr-x 1 sergei users 13334 2006-01-01 14:46 PerlPreProcessor -rw-r--r-- 1 sergei users 209 2006-01-02 16:00 hello.c.before_PerlPreProcessor -rw-r--r-- 1 sergei users 19508 2006-01-02 19:39 README.multichannel_multiband_equalizer.txt -rw------- 1 sergei users 35571 2007-01-03 14:32 mbeq_119700.c.before_PerlPreProcessor.bck -rw-r--r-- 1 sergei users 35496 2007-01-03 14:32 mbeq_119700.c.before_PerlPreProcessor -rw-r--r-- 1 sergei users 125196 2007-01-03 14:58 mbeq_119700.c -rw-r--r-- 1 sergei users 99200 2007-01-03 14:58 mbeq_119700.o -rwxr-xr-x 1 sergei users 87639 2007-01-03 14:59 mbeq_119700.so -rw-r--r-- 1 sergei users 55700108 2007-01-03 15:01 out.wav [349] 15:01 sergei@amdam2:/ibm/home/sergei/debug_mbeq_119700/swh-plugins-0.4.11> ( setenv LADSPA_PATH `pwd` ; applyplugin /ibm/home/sergei/bq_multiband_equalizer.20061006/C/track01.cdda.wav out.wav ./mbeq_119700.so MChMBEq 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 );echo $status ladspa_descriptor: returning MChMBEqDescriptor=0804e0c0 instantiateMChMBEq :INFO: actual 00 band bin number: 2 frequency: 21.5332Hz instantiateMChMBEq :INFO: actual 01 band bin number: 3 frequency: 32.2998Hz instantiateMChMBEq :INFO: actual 02 band bin number: 4 frequency: 43.0664Hz instantiateMChMBEq :INFO: actual 03 band bin number: 5 frequency: 53.833Hz instantiateMChMBEq :INFO: actual 04 band bin number: 6 frequency: 64.5996Hz instantiateMChMBEq :INFO: actual 05 band bin number: 7 frequency: 75.3662Hz instantiateMChMBEq :INFO: actual 06 band bin number: 9 frequency: 96.8994Hz instantiateMChMBEq :INFO: actual 07 band bin number: 12 frequency: 129.199Hz instantiateMChMBEq :INFO: actual 08 band bin number: 15 frequency: 161.499Hz instantiateMChMBEq :INFO: actual 09 band bin number: 19 frequency: 204.565Hz instantiateMChMBEq :INFO: actual 10 band bin number: 24 frequency: 258.398Hz instantiateMChMBEq :INFO: actual 11 band bin number: 30 frequency: 322.998Hz instantiateMChMBEq :INFO: actual 12 band bin number: 37 frequency: 398.364Hz instantiateMChMBEq :INFO: actual 13 band bin number: 47 frequency: 506.03Hz instantiateMChMBEq :INFO: actual 14 band bin number: 59 frequency: 635.229Hz instantiateMChMBEq :INFO: actual 15 band bin number: 75 frequency: 807.495Hz instantiateMChMBEq :INFO: actual 16 band bin number: 94 frequency: 1012.06Hz instantiateMChMBEq :INFO: actual 17 band bin number: 119 frequency: 1281.23Hz instantiateMChMBEq :INFO: actual 18 band bin number: 150 frequency: 1614.99Hz instantiateMChMBEq :INFO: actual 19 band bin number: 189 frequency: 2034.89Hz instantiateMChMBEq :INFO: actual 20 band bin number: 238 frequency: 2562.45Hz instantiateMChMBEq :INFO: actual 21 band bin number: 300 frequency: 3229.98Hz instantiateMChMBEq :INFO: actual 22 band bin number: 377 frequency: 4059.01Hz instantiateMChMBEq :INFO: actual 23 band bin number: 476 frequency: 5124.9Hz instantiateMChMBEq :INFO: actual 24 band bin number: 599 frequency: 6449.19Hz instantiateMChMBEq :INFO: actual 25 band bin number: 755 frequency: 8128.78Hz instantiateMChMBEq :INFO: actual 26 band bin number: 951 frequency: 10239Hz instantiateMChMBEq :INFO: actual 27 band bin number: 1198 frequency: 12898.4Hz instantiateMChMBEq :INFO: actual 28 band bin number: 1510 frequency: 16257.6Hz instantiateMChMBEq :INFO: actual 29 band bin number: 1902 frequency: 20478.1Hz instantiateMChMBEq - __LINE__=1549 (*plugin_data).half_fft_length=2048 activateMChMBEq: instance=08056770 Peak output: 26010 0 [350] 15:03 sergei@amdam2:/ibm/home/sergei/debug_mbeq_119700/swh-plugins-0.4.11> -- Visit my http://appsfromscratch.berlios.de/ open source project.
Attachment:
mbeq_119700.c.before_PerlPreProcessor.gz
Description: GNU Zip compressed data
------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________ Alsa-user mailing list Alsa-user@xxxxxxxxxxxxxxxxxxxxx https://lists.sourceforge.net/lists/listinfo/alsa-user