Mercurial > hg > svcore
comparison plugin/LADSPAPluginInstance.cpp @ 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 | 570794f6f6a7 |
children | 91fdc752e540 |
comparison
equal
deleted
inserted
replaced
183:146eb9e35baa | 184:5a916fee6d2d |
---|---|
335 | 335 |
336 m_controlPortsIn.clear(); | 336 m_controlPortsIn.clear(); |
337 m_controlPortsOut.clear(); | 337 m_controlPortsOut.clear(); |
338 | 338 |
339 if (m_ownBuffers) { | 339 if (m_ownBuffers) { |
340 for (size_t i = 0; i < m_audioPortsIn.size(); ++i) { | 340 for (size_t i = 0; i < m_instanceCount * m_audioPortsIn.size(); ++i) { |
341 delete[] m_inputBuffers[i]; | 341 delete[] m_inputBuffers[i]; |
342 } | 342 } |
343 for (size_t i = 0; i < m_audioPortsOut.size(); ++i) { | 343 for (size_t i = 0; i < m_instanceCount * m_audioPortsOut.size(); ++i) { |
344 delete[] m_outputBuffers[i]; | 344 delete[] m_outputBuffers[i]; |
345 } | 345 } |
346 | 346 |
347 delete[] m_inputBuffers; | 347 delete[] m_inputBuffers; |
348 delete[] m_outputBuffers; | 348 delete[] m_outputBuffers; |