comparison plugins/Silence.cpp @ 32:8a20f3488d88

(Start to) remove the channel counts from everywhere: they should always be 1 anyway as that's what Vamp::Plugin::getMaxChannelCount always defaulted to
author Chris Cannam <cannam@all-day-breakfast.com>
date Mon, 09 Jul 2012 15:50:30 +0100
parents 2e979622bd93
children bcb23bb4b7aa
comparison
equal deleted inserted replaced
31:2e979622bd93 32:8a20f3488d88
76 } 76 }
77 77
78 bool 78 bool
79 Silence::initialise(size_t channels, size_t stepSize, size_t blockSize) 79 Silence::initialise(size_t channels, size_t stepSize, size_t blockSize)
80 { 80 {
81 m_channelCount = channels; 81 if (channels != 1) {
82 std::cerr << "Silence::initialise: channels must be 1" << std::endl;
83 return false;
84 }
85
82 m_stepSize = stepSize; 86 m_stepSize = stepSize;
83 m_blockSize = blockSize; 87 m_blockSize = blockSize;
84 88
85 m_ibuf = new_fvec(stepSize, channels); 89 m_ibuf = new_fvec(stepSize);
86 m_pbuf = new_fvec(stepSize, channels); 90 m_pbuf = new_fvec(stepSize);
87 m_tmpptrs = new smpl_t *[channels]; 91 m_tmpptrs = new smpl_t *[channels];
88 92
89 return true; 93 return true;
90 } 94 }
91 95