plugins/: unused attribute only for gcc
[vamp-aubio-plugins.git] / plugins / MelEnergy.cpp
index 995adee..7641e23 100644 (file)
@@ -5,7 +5,7 @@
 
     Copyright (C) 2006-2015 Paul Brossier <piem@aubio.org>
 
-    This file is part of vamp-aubio.
+    This file is part of vamp-aubio-plugins.
 
     vamp-aubio is free software: you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
@@ -146,7 +146,7 @@ MelEnergy::getParameterDescriptors() const
     ParameterDescriptor desc;
     desc.identifier = "nfilters";
     desc.name = "Number of filters";
-    desc.description = "Size of filterbank used to Mel Bands (40)";
+    desc.description = "Size of filterbank used to compute mel bands (fixed to 40 for now)";
     desc.minValue = 40;
     desc.maxValue = 40;
     desc.defaultValue = 40;
@@ -189,7 +189,7 @@ MelEnergy::getOutputDescriptors() const
     d.binCount = m_nfilters;
     d.isQuantized = true;
     d.sampleType = OutputDescriptor::FixedSampleRate;
-    d.sampleRate = m_inputSampleRate / m_stepSize;
+    d.sampleRate = OutputDescriptor::OneSamplePerStep;
     list.push_back(d);
 
     return list;
@@ -197,7 +197,7 @@ MelEnergy::getOutputDescriptors() const
 
 MelEnergy::FeatureSet
 MelEnergy::process(const float *const *inputBuffers,
-               Vamp::RealTime timestamp)
+               UNUSED Vamp::RealTime timestamp)
 {
     FeatureSet returnFeatures;
 
@@ -218,8 +218,6 @@ MelEnergy::process(const float *const *inputBuffers,
     aubio_filterbank_do(m_melbank, m_ispec, m_ovec);
 
     Feature feature;
-    //feature.hasTimestamp = false;
-    feature.timestamp = timestamp;
     for (uint_t i = 0; i < m_ovec->length; i++) {
         float value = m_ovec->data[i];
         feature.values.push_back(value);