Mercurial > hg > vamp-plugin-sdk
comparison examples/PowerSpectrum.cpp @ 419:55de53d7c777
Merge
author | Chris Cannam |
---|---|
date | Tue, 01 Mar 2016 12:21:23 +0000 |
parents | 7d59dd1ba5de |
children |
comparison
equal
deleted
inserted
replaced
418:a13635e9c440 | 419:55de53d7c777 |
---|---|
87 { | 87 { |
88 return "Freely redistributable (BSD license)"; | 88 return "Freely redistributable (BSD license)"; |
89 } | 89 } |
90 | 90 |
91 bool | 91 bool |
92 PowerSpectrum::initialise(size_t channels, size_t stepSize, size_t blockSize) | 92 PowerSpectrum::initialise(size_t channels, size_t, size_t blockSize) |
93 { | 93 { |
94 if (channels < getMinChannelCount() || | 94 if (channels < getMinChannelCount() || |
95 channels > getMaxChannelCount()) return false; | 95 channels > getMaxChannelCount()) return false; |
96 | 96 |
97 m_blockSize = blockSize; | 97 m_blockSize = blockSize; |
131 | 131 |
132 return list; | 132 return list; |
133 } | 133 } |
134 | 134 |
135 PowerSpectrum::FeatureSet | 135 PowerSpectrum::FeatureSet |
136 PowerSpectrum::process(const float *const *inputBuffers, Vamp::RealTime timestamp) | 136 PowerSpectrum::process(const float *const *inputBuffers, Vamp::RealTime) |
137 { | 137 { |
138 FeatureSet fs; | 138 FeatureSet fs; |
139 | 139 |
140 if (m_blockSize == 0) { | 140 if (m_blockSize == 0) { |
141 cerr << "ERROR: PowerSpectrum::process: Not initialised" << endl; | 141 cerr << "ERROR: PowerSpectrum::process: Not initialised" << endl; |