diff transform/FeatureExtractionPluginTransform.cpp @ 64:4d59dc469b0f

* Ensure plugin parameters for a transform are saved in the .sv file and restored in case the plugin has to be run again * Make plugin dialog offer options for mixdown/single-channel use if the file has more than one channels but the plugin only accepts one * Fix incorrect samplerate playback for second file loaded if its samplerate differed from first * Add Zoom to Fit and Select Visible Range menu options, split out Import Audio into main model and secondary model options * Add stubs for cut, copy and paste operations (not implemented yet)
author Chris Cannam
date Thu, 30 Mar 2006 13:18:11 +0000
parents ba405e5e69d3
children 7afcfe666910
line wrap: on
line diff
--- a/transform/FeatureExtractionPluginTransform.cpp	Wed Mar 29 12:35:17 2006 +0000
+++ b/transform/FeatureExtractionPluginTransform.cpp	Thu Mar 30 13:18:11 2006 +0000
@@ -29,10 +29,12 @@
 
 FeatureExtractionPluginTransform::FeatureExtractionPluginTransform(Model *inputModel,
 								   QString pluginId,
+                                                                   int channel,
                                                                    QString configurationXml,
 								   QString outputName) :
     Transform(inputModel),
     m_plugin(0),
+    m_channel(channel),
     m_descriptor(0),
     m_outputFeatureNo(0)
 {
@@ -223,7 +225,7 @@
 
 	if (channelCount == 1) {
 	    got = input->getValues
-		(-1, blockFrame, blockFrame + blockSize, buffers[0]);
+		(m_channel, blockFrame, blockFrame + blockSize, buffers[0]);
 	    while (got < blockSize) {
 		buffers[0][got++] = 0.0;
 	    }