Mercurial > hg > sonic-visualiser
changeset 52:527598e2fa10
* 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 | 5f9fdca0c7d8 |
children | 94f1c2747de4 |
files | transform/RealTimePluginTransform.cpp transform/TransformFactory.cpp |
diffstat | 2 files changed, 7 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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;
--- 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,