Mercurial > hg > sonic-visualiser
comparison transform/RealTimePluginTransform.cpp @ 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 | 5a72bf7490ae |
children | ca1e3f5657d5 |
comparison
equal
deleted
inserted
replaced
51:5f9fdca0c7d8 | 52:527598e2fa10 |
---|---|
73 return; | 73 return; |
74 } | 74 } |
75 | 75 |
76 if (m_outputNo == -1) { | 76 if (m_outputNo == -1) { |
77 | 77 |
78 size_t outputChannels = m_plugin->getAudioOutputCount(); | |
79 if (outputChannels > input->getChannelCount()) { | |
80 outputChannels = input->getChannelCount(); | |
81 } | |
82 | |
78 WritableWaveFileModel *model = new WritableWaveFileModel | 83 WritableWaveFileModel *model = new WritableWaveFileModel |
79 (input->getSampleRate(), input->getChannelCount()); //!!! | 84 (input->getSampleRate(), outputChannels); |
80 | 85 |
81 m_output = model; | 86 m_output = model; |
82 | 87 |
83 } else { | 88 } else { |
84 | 89 |