Mercurial > hg > segmenter-vamp-plugin
changeset 17:6f87e0cb5e5e slimline
Fix uninitialised sampleRate fields in two output descriptors -- but these values need to be checked
author | Chris Cannam |
---|---|
date | Thu, 10 May 2012 10:32:29 +0100 |
parents | 4f9d59b0526e |
children | 8d046a9d36aa |
files | songparts/SongParts.cpp songparts/SongParts.o |
diffstat | 2 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/songparts/SongParts.cpp Thu May 10 10:23:37 2012 +0100 +++ b/songparts/SongParts.cpp Thu May 10 10:32:29 2012 +0100 @@ -618,6 +618,7 @@ qchroma.isQuantized = false; qchroma.sampleType = OutputDescriptor::FixedSampleRate; qchroma.hasDuration = true; + qchroma.sampleRate = m_inputSampleRate/2048; m_qchromaOutputNumber = outputCounter++; OutputDescriptor segm; @@ -634,6 +635,7 @@ segm.isQuantized = true; segm.quantizeStep = 1; segm.sampleType = OutputDescriptor::VariableSampleRate; + segm.sampleRate = 1.0 / m_stepSecs; segm.hasDuration = true; m_segmOutputNumber = outputCounter++;