# HG changeset patch # User Chris Cannam # Date 1336642349 -3600 # Node ID 6f87e0cb5e5e0779a9abc947e545663e7258b7ad # Parent 4f9d59b0526e2826b58a4978484edf39ca4dee2f Fix uninitialised sampleRate fields in two output descriptors -- but these values need to be checked diff -r 4f9d59b0526e -r 6f87e0cb5e5e songparts/SongParts.cpp --- 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++; diff -r 4f9d59b0526e -r 6f87e0cb5e5e songparts/SongParts.o Binary file songparts/SongParts.o has changed