From: bugtrack@alsa-project.org Subject: [ALSA - lib 0000584]: LADSPA plugins which require multiple channels are not connected to properly -> SEGV Date: Sun, 20 Mar 2005 15:15:18 +0100 Message-ID: <4135cdd16da7ca3300029aa32986bd5e@bugtrack.alsa-project.org> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Received: from bugtrack.alsa-project.org (gate.perex.cz [82.113.61.162]) by alsa.alsa-project.org (ALSA's E-mail Delivery System) with ESMTP id A47F8255 for ; Sun, 20 Mar 2005 15:15:18 +0100 (MET) Sender: alsa-devel-admin@lists.sourceforge.net Errors-To: alsa-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org A NOTE has been added to this issue. ====================================================================== ====================================================================== Reported By: divVerent Assigned To: ====================================================================== Project: ALSA - lib Issue ID: 584 Category: pcm - digital audio Reproducibility: always Severity: crash Priority: normal Status: new ====================================================================== Date Submitted: 10-15-2004 22:58 CEST Last Modified: 03-20-2005 15:15 CET ====================================================================== Summary: LADSPA plugins which require multiple channels are not connected to properly -> SEGV Description: Instead of connecting all channels to the LADSPA plugin and invoking it once, libasound connects them one-by-one and invokes the LADSPA plugin multiple times. In other words, libasound only handles mono plugins and "stretches" them into stereo plugins by processing the audio data channel by channel. This will however make real stereo/multichannel plugins crash because they do what "ladspa.h" says: /* quoting ladspa.h The plugin may assume that all its input and output ports have been connected to the relevant data location (see the `connect_port()' function below) before it is asked to run. */ ====================================================================== ---------------------------------------------------------------------- jdthood - 03-20-05 13:02 ---------------------------------------------------------------------- Submitter: How do you think that this should be fixed? ---------------------------------------------------------------------- divVerent - 03-20-05 15:15 ---------------------------------------------------------------------- By handling multichannel LADSPA plugins so that all channels are connected to their slots. I see that this would break old functionality which can "expand" a single-channel LADSPA plugin to all channels. Perhaps it would be good to make this "expansion" an option of the LADSPA plugin. Unfortunately, from what I've read in the ALSA source code about this, it would require a complete rewrite of the LADSPA interface. But I still hope I am wrong. Issue History Date Modified Username Field Change ====================================================================== 10-15-04 22:58 divVerent New Issue 10-15-04 23:21 divVerent Issue Monitored: divVerent 03-20-05 13:02 jdthood Note Added: 0004076 03-20-05 15:15 divVerent Note Added: 0004090 ====================================================================== ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click