# HG changeset patch # User Chris Cannam # Date 1160507097 0 # Node ID 527598e2fa108f2dc643fe891e193520256fd16a # Parent 5f9fdca0c7d80fe874234dc6f8472dda63be29cd * Handle generator transforms (plugins whose channel count isn't dependent on number of audio inputs, as they have none) * Be less keen to suspend writing FFT data in spectrogram repaint -- only do it if we find we actually need to query the FFT data (i.e. we aren't repainting an area that hasn't been generated at all yet) diff -r 5f9fdca0c7d8 -r 527598e2fa10 transform/RealTimePluginTransform.cpp --- a/transform/RealTimePluginTransform.cpp Mon Oct 09 10:49:46 2006 +0000 +++ b/transform/RealTimePluginTransform.cpp Tue Oct 10 19:04:57 2006 +0000 @@ -75,8 +75,13 @@ if (m_outputNo == -1) { + size_t outputChannels = m_plugin->getAudioOutputCount(); + if (outputChannels > input->getChannelCount()) { + outputChannels = input->getChannelCount(); + } + WritableWaveFileModel *model = new WritableWaveFileModel - (input->getSampleRate(), input->getChannelCount()); //!!! + (input->getSampleRate(), outputChannels); m_output = model; diff -r 5f9fdca0c7d8 -r 527598e2fa10 transform/TransformFactory.cpp --- a/transform/TransformFactory.cpp Mon Oct 09 10:49:46 2006 +0000 +++ b/transform/TransformFactory.cpp Tue Oct 10 19:04:57 2006 +0000 @@ -324,7 +324,7 @@ transforms[transformName] = - TransformDesc(tr("Effects Measurements"), + TransformDesc(tr("Effects Data"), category, transformName, userDescription,