diff options
Diffstat (limited to 'source/application/main/Mfcc.cc')
-rw-r--r-- | source/application/main/Mfcc.cc | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/source/application/main/Mfcc.cc b/source/application/main/Mfcc.cc index 9ddcb5d..c8ad138 100644 --- a/source/application/main/Mfcc.cc +++ b/source/application/main/Mfcc.cc @@ -19,6 +19,7 @@ #include "PlatformMath.hpp" #include <cfloat> +#include <inttypes.h> namespace arm { namespace app { @@ -49,16 +50,16 @@ namespace audio { char strC[1024]; snprintf(strC, sizeof(strC) - 1, "\n \ \n\t Sampling frequency: %f\ - \n\t Number of filter banks: %u\ + \n\t Number of filter banks: %" PRIu32 "\ \n\t Mel frequency limit (low): %f\ \n\t Mel frequency limit (high): %f\ - \n\t Number of MFCC features: %u\ - \n\t Frame length: %u\ - \n\t Padded frame length: %u\ + \n\t Number of MFCC features: %" PRIu32 "\ + \n\t Frame length: %" PRIu32 "\ + \n\t Padded frame length: %" PRIu32 "\ \n\t Using HTK for Mel scale: %s\n", - this->m_samplingFreq, this->m_numFbankBins, this->m_melLoFreq, - this->m_melHiFreq, this->m_numMfccFeatures, this->m_frameLen, - this->m_frameLenPadded, this->m_useHtkMethod ? "yes" : "no"); + this->m_samplingFreq, this->m_numFbankBins, this->m_melLoFreq, + this->m_melHiFreq, this->m_numMfccFeatures, this->m_frameLen, + this->m_frameLenPadded, this->m_useHtkMethod ? "yes" : "no"); return std::string{strC}; } |