comparison transform/TransformFactory.cpp @ 44:5a72bf7490ae

...
author Chris Cannam
date Wed, 04 Oct 2006 14:01:28 +0000
parents c0ae41c72421
children 527598e2fa10
comparison
equal deleted inserted replaced
43:0739be123304 44:5a72bf7490ae
517 517
518 int minChannels = 1, maxChannels = sourceChannels; 518 int minChannels = 1, maxChannels = sourceChannels;
519 getChannelRange(name, plugin, minChannels, maxChannels); 519 getChannelRange(name, plugin, minChannels, maxChannels);
520 520
521 int targetChannels = sourceChannels; 521 int targetChannels = sourceChannels;
522 if (sourceChannels < minChannels) targetChannels = minChannels; 522 if (!effect) {
523 if (sourceChannels > maxChannels) targetChannels = maxChannels; 523 if (sourceChannels < minChannels) targetChannels = minChannels;
524 if (sourceChannels > maxChannels) targetChannels = maxChannels;
525 }
524 526
525 int defaultChannel = context.channel; 527 int defaultChannel = context.channel;
526 528
527 PluginParameterDialog *dialog = new PluginParameterDialog(plugin, 529 PluginParameterDialog *dialog = new PluginParameterDialog(plugin,
528 sourceChannels, 530 sourceChannels,