Skip to contentSkip to conversation

: LADSPA plugins which require multiple channels are not connected to properly -> SEGV

ALSA - lib 0000584 [email protected] 1 participant 1 message Dec 13, 2005

lore
Share & tools
lore
#0 lore raw

The following issue has been RESOLVED.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=584>
======================================================================

Reported By:                divVerent
Assigned To:                perex
======================================================================
Project:                    ALSA - lib
Issue ID:                   584
Category:                   1_pcm - digital audio
Reproducibility:            always
Severity:                   crash
Priority:                   normal
Status:                     resolved
Resolution:                 fixed
Fixed in Version:           
======================================================================
Date Submitted:             10-15-2004 22:58 CEST
Last Modified:              12-13-2005 15:26 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.
*/
======================================================================

----------------------------------------------------------------------
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.

----------------------------------------------------------------------
perex - 12-13-05 15:26
----------------------------------------------------------------------
It's fixed in ALSA CVS. The configuration example works now and the LADSPA code in alsa-lib was recoded to be more universal.

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                          
12-13-05 15:26 perex          Status                   new => resolved     
12-13-05 15:26 perex          Resolution               open => fixed       
12-13-05 15:26 perex          Assigned To               => perex           
12-13-05 15:26 perex          Note Added: 0007018                          

======================================================================

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click