Discussion:
[Linuxsampler-devel] Disabling LADSPA
Holger Marzen
2014-08-13 19:23:51 UTC
Permalink
Hi all,

I use linuxsampler built from source revision 2593.
It works ok but when I select the sfz engine it spills out a lot of
messages about one of the many LADSPA plugins. This could prevent
Qtractor loading my session until Qtractor's author improved catching
stdout messages.

However, I don't need any LADSPA plugins withing Linuxsampler and would
like to disable this part of Linuxsampler. But there is no
./configure-option to disable it. Where should I start?

Regards
Holger

Linuxsamplers output when selecting the sfz engine:


LinuxSampler 1.0.0.svn41
Copyright (C) 2003,2004 by Benno Senoner and Christian Schoenebeck
Copyright (C) 2005-2014 Christian Schoenebeck
Detected features: MMX SSE SSE2
Automatic Stacktrace: Off
Creating Sampler...OK
Registered sampler engines: 'GIG','SF2','SFZ'
Registered MIDI input drivers: ALSA,JACK
Registered audio output drivers: ALSA,JACK
Loading instrument editor plugins...OK
Registered instrument editors: 'gigedit'
Registered internal effect systems: LADSPA
Registered internal effects: 210
Starting LSCP network server (0.0.0.0:8888)...OK
LinuxSampler initialization completed. :-)

LSCPServer: Client connection established on socket:4.
LSCPServer: Client connection established on socket:5.
No audio output device connected to sampler channel
ALSA lib pcm_hw.c:1401:(_snd_pcm_hw_open) Invalid value for card
ALSA lib pcm_hw.c:1401:(_snd_pcm_hw_open) Invalid value for card
libjackBufferSizeCallback(512)
Thread: WARNING, can't assign realtime scheduling to thread!
Starting disk thread...OK
EQ support: no
Stopping disk thread...OK
Starting disk thread...OK
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
EQ support: Triple band parametric with shelves
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Instantiating LADSPA effect 'triplePara'.
LADSPA effect 'triplePara' activated.
Stopping disk thread...OK
Holger Marzen
2014-08-13 20:39:53 UTC
Permalink
I did a quick'n'dirty patch:


--- ./src/effects/LadspaEffect.cpp.orig 2014-08-13 22:37:11.623392733 +0200
+++ ./src/effects/LadspaEffect.cpp 2014-08-13 22:25:34.552406957 +0200
@@ -376,7 +376,8 @@
std::vector<EffectInfo*> v; // will be filled in callback function _foundLadspaDll()

char* pcLadspaPath = getenv("LADSPA_PATH");
- String ladspaDir = pcLadspaPath ? pcLadspaPath : defaultLadspaDir();
+ //String ladspaDir = pcLadspaPath ? pcLadspaPath : defaultLadspaDir();
+ String ladspaDir = ""; /* -hm- */

std::istringstream ss(ladspaDir);
std::string path;
Christian Schoenebeck
2014-08-15 12:48:18 UTC
Permalink
Post by Holger Marzen
However, I don't need any LADSPA plugins withing Linuxsampler and would
like to disable this part of Linuxsampler. But there is no
./configure-option to disable it. Where should I start?
There is in fact no configure parameter yet to disable LADSPA support
explicitly. Seems not many needed it so far. So stick with the suggested quick
and dirty patch, or if you want to fix it in configure.ac by yourself, your
patch would be appreciated.

CU
Christian
d***@gmail.com
2014-08-24 01:01:12 UTC
Permalink
Hi all,
Using linuxsampler with alsa driver I encounter glitchs which I suppose
are related to buffer_size
but while trying to tune it with following
SET AUDIO_OUTPUT_DEVICE_PARAMETER 0 FRAGMENTSIZE=1024
LS answers
Device parameter is read only
but this does not seems to be hardcoded in alsa drivers itself, as if I
check
$ cat /proc/asound/M66/pcm0p/sub0/*

while running "aplay" I get the following

$ format: S32_LE
$ subformat: STD
$ channels: 10
$ rate: 48000 (48000/1)
$ period_size: 1024
$ buffer_size: 6553

but while running "linuxsampler" it goes back to smaller value and
reported as "read only"

$ format: S32_LE
$ subformat: STD
$ channels: 10
$ rate: 44100 (44100/1)
$ period_size: 128
$ buffer_size: 256

So it should be possible some how to modify this parameter
I suspect LS implementation of alsa API does not enables tuning of these
parameters. Am I right ?
If so would anyone would have any suggestion to fix this ?

I run a debian with kernel 3.2.0-4-amd64, an MAUDIO 66, with LS svn
source from 1st of June


Thanx a tons for your help
BTW linuxsampler rocks a lot, I can now play rhodes and grand piano on
my Venom ... event if it glitches a bit :)
Christian Schoenebeck
2014-08-24 15:54:03 UTC
Permalink
Post by Holger Marzen
Hi all,
Using linuxsampler with alsa driver I encounter glitchs which I suppose
are related to buffer_size
but while trying to tune it with following
SET AUDIO_OUTPUT_DEVICE_PARAMETER 0 FRAGMENTSIZE=1024
LS answers
Device parameter is read only
You can provide the fragment size when you create the ALSA audio device, like
this:

CREATE AUDIO_OUTPUT_DEVICE ALSA FRAGMENTSIZE=1024

CU
Christian
Christian Schoenebeck
2014-08-25 09:48:07 UTC
Permalink
Hi Christian
thanx for your last answer, it did the tricks.
Still I get some sounds problems which now correlated with this message
Disk stream not available in time
Would you have any tips to avoid these ?
Did you change the default settings for max. disk streams and max. voices?

The default values for "max. voices" are 64 voices and for "max. disk streams"
90 disk streams. With those default values you can even use ancient and lame
hardware without getting into the issue you pasted above, i.e. a 15 years old
PC would work fine.

Or is that some extremely weak ARM board or something you are using?

CU
Christian

Loading...