comparison audioio/AudioGenerator.cpp @ 20:b5a14d115240

* Make RealTimePluginInstances also provide the PluginInstance interface
author Chris Cannam
date Mon, 20 Mar 2006 13:48:58 +0000
parents c606d3ffa397
children ebe07d3560e6
comparison
equal deleted inserted replaced
19:c606d3ffa397 20:b5a14d115240
126 126
127 if (instance) { 127 if (instance) {
128 for (unsigned int i = 0; i < instance->getParameterCount(); ++i) { 128 for (unsigned int i = 0; i < instance->getParameterCount(); ++i) {
129 instance->setParameterValue(i, instance->getParameterDefault(i)); 129 instance->setParameterValue(i, instance->getParameterDefault(i));
130 } 130 }
131 QString defaultProgram = instance->getProgram(0, 0); 131 std::string defaultProgram = instance->getProgram(0, 0);
132 if (defaultProgram != "") { 132 if (defaultProgram != "") {
133 std::cerr << "first selecting default program " << defaultProgram.toLocal8Bit().data() << std::endl; 133 std::cerr << "first selecting default program " << defaultProgram << std::endl;
134 instance->selectProgram(defaultProgram); 134 instance->selectProgram(defaultProgram);
135 } 135 }
136 if (program != "") { 136 if (program != "") {
137 std::cerr << "now selecting desired program " << program.toLocal8Bit().data() << std::endl; 137 std::cerr << "now selecting desired program " << program.toStdString() << std::endl;
138 instance->selectProgram(program); 138 instance->selectProgram(program.toStdString());
139 } 139 }
140 instance->setIdealChannelCount(m_targetChannelCount); // reset! 140 instance->setIdealChannelCount(m_targetChannelCount); // reset!
141 } else { 141 } else {
142 std::cerr << "Failed to instantiate plugin" << std::endl; 142 std::cerr << "Failed to instantiate plugin" << std::endl;
143 } 143 }