changeset 184:5a916fee6d2d

* 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)
author Chris Cannam
date Tue, 10 Oct 2006 19:04:57 +0000
parents 146eb9e35baa
children d5052b5fea9c
files plugin/LADSPAPluginInstance.cpp
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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];
 	}