Bug 169

Summary: EFFECT_INSTANCE: FX_SEND Outputs errors
Product: LinuxSampler Reporter: Nicola Pandini <nicola.pandini>
Component: otherAssignee: Christian Schoenebeck <cuse>
Status: ASSIGNED ---    
Severity: normal    
Priority: P5    
Version: SVN Trunk   
Hardware: PC   
OS: Linux   

Description Nicola Pandini 2012-01-11 14:23:21 CET
Hi,
If I set the outputs of an FX SEND (assigned to an EFFECT CHAIN) to outputs 2 and 3, I've got the following error:

Engine::RouteAudio() Error: invalid FX send (L) destination channel (0->2)



I'm using the following lscp script:

CREATE AUDIO_OUTPUT_DEVICE JACK ACTIVE=true CHANNELS=4 SAMPLERATE=44100 NAME='LinuxSampler'

SET AUDIO_OUTPUT_CHANNEL_PARAMETER 0 0 NAME='0'

SET AUDIO_OUTPUT_CHANNEL_PARAMETER 0 0 JACK_BINDINGS=NONE

SET AUDIO_OUTPUT_CHANNEL_PARAMETER 0 1 NAME='1'

SET AUDIO_OUTPUT_CHANNEL_PARAMETER 0 1 JACK_BINDINGS=NONE

SET AUDIO_OUTPUT_CHANNEL_PARAMETER 0 2 NAME='2'

SET AUDIO_OUTPUT_CHANNEL_PARAMETER 0 2 JACK_BINDINGS=NONE

SET AUDIO_OUTPUT_CHANNEL_PARAMETER 0 3 NAME='3'

SET AUDIO_OUTPUT_CHANNEL_PARAMETER 0 3 JACK_BINDINGS=NONE

ADD SEND_EFFECT_CHAIN 0

CREATE EFFECT_INSTANCE LADSPA '/usr/lib/ladspa/calf.so' 'Reverb'

APPEND SEND_EFFECT_CHAIN EFFECT 0 0 0



REMOVE MIDI_INSTRUMENT_MAP ALL



ADD CHANNEL

LOAD ENGINE SFZ 0

SET CHANNEL VOLUME 0 1.0

SET CHANNEL MIDI_INSTRUMENT_MAP 0 NONE

SET CHANNEL AUDIO_OUTPUT_DEVICE 0 0

SET CHANNEL AUDIO_OUTPUT_CHANNEL 0 0 0

SET CHANNEL AUDIO_OUTPUT_CHANNEL 0 1 1

LOAD INSTRUMENT NON_MODAL '/home/sfz_library/example.sfz' 0 0



CREATE FX_SEND 0 3 'New effect send'

SET FX_SEND LEVEL 0 0 1.0

SET FX_SEND AUDIO_OUTPUT_CHANNEL 0 0 0 2

SET FX_SEND AUDIO_OUTPUT_CHANNEL 0 0 1 3

SET FX_SEND EFFECT 0 0 0 0