# HG changeset patch # User Chris Cannam # Date 1160507097 0 # Node ID 5a916fee6d2d6557945de1a3215b287544ab58d5 # Parent 146eb9e35baa1fb726c73fab3ba64f9714b0fbda * 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 146eb9e35baa -r 5a916fee6d2d plugin/LADSPAPluginInstance.cpp --- a/plugin/LADSPAPluginInstance.cpp Tue Oct 10 14:51:17 2006 +0000 +++ b/plugin/LADSPAPluginInstance.cpp Tue Oct 10 19:04:57 2006 +0000 @@ -337,10 +337,10 @@ m_controlPortsOut.clear(); if (m_ownBuffers) { - for (size_t i = 0; i < m_audioPortsIn.size(); ++i) { + for (size_t i = 0; i < m_instanceCount * m_audioPortsIn.size(); ++i) { delete[] m_inputBuffers[i]; } - for (size_t i = 0; i < m_audioPortsOut.size(); ++i) { + for (size_t i = 0; i < m_instanceCount * m_audioPortsOut.size(); ++i) { delete[] m_outputBuffers[i]; }