diff transform/TransformFactory.cpp @ 44:5a72bf7490ae

...
author Chris Cannam
date Wed, 04 Oct 2006 14:01:28 +0000
parents c0ae41c72421
children 527598e2fa10
line wrap: on
line diff
--- a/transform/TransformFactory.cpp	Wed Oct 04 12:20:15 2006 +0000
+++ b/transform/TransformFactory.cpp	Wed Oct 04 14:01:28 2006 +0000
@@ -519,8 +519,10 @@
         getChannelRange(name, plugin, minChannels, maxChannels);
 
         int targetChannels = sourceChannels;
-        if (sourceChannels < minChannels) targetChannels = minChannels;
-        if (sourceChannels > maxChannels) targetChannels = maxChannels;
+        if (!effect) {
+            if (sourceChannels < minChannels) targetChannels = minChannels;
+            if (sourceChannels > maxChannels) targetChannels = maxChannels;
+        }
 
         int defaultChannel = context.channel;