Mercurial > hg > svapp
comparison audioio/AudioGenerator.cpp @ 228:67cea66bd588 debug-output
Remove most toStdString calls (no longer needed, with debug header)
author | Chris Cannam |
---|---|
date | Thu, 12 May 2011 17:31:56 +0100 |
parents | 0db3fc28a2a1 |
children | 8c13e8219903 |
comparison
equal
deleted
inserted
replaced
219:85e59c901de9 | 228:67cea66bd588 |
---|---|
95 | 95 |
96 if (!file.copy(target)) { | 96 if (!file.copy(target)) { |
97 std::cerr << "WARNING: AudioGenerator::getSampleDir: " | 97 std::cerr << "WARNING: AudioGenerator::getSampleDir: " |
98 << "Unable to copy " << fileName.toStdString() | 98 << "Unable to copy " << fileName.toStdString() |
99 << " into temporary directory \"" | 99 << " into temporary directory \"" |
100 << m_sampleDir.toStdString() << "\"" << std::endl; | 100 << m_sampleDir << "\"" << std::endl; |
101 } else { | 101 } else { |
102 QFile tf(target); | 102 QFile tf(target); |
103 tf.setPermissions(tf.permissions() | | 103 tf.setPermissions(tf.permissions() | |
104 QFile::WriteOwner | | 104 QFile::WriteOwner | |
105 QFile::WriteUser); | 105 QFile::WriteUser); |
238 RealTimePluginInstance *instance = | 238 RealTimePluginInstance *instance = |
239 factory->instantiatePlugin | 239 factory->instantiatePlugin |
240 (pluginId, 0, 0, m_sourceSampleRate, m_pluginBlockSize, m_targetChannelCount); | 240 (pluginId, 0, 0, m_sourceSampleRate, m_pluginBlockSize, m_targetChannelCount); |
241 | 241 |
242 if (!instance) { | 242 if (!instance) { |
243 std::cerr << "Failed to instantiate plugin " << pluginId.toStdString() << std::endl; | 243 std::cerr << "Failed to instantiate plugin " << pluginId << std::endl; |
244 return 0; | 244 return 0; |
245 } | 245 } |
246 | 246 |
247 setSampleDir(instance); | 247 setSampleDir(instance); |
248 | 248 |
253 if (defaultProgram != "") { | 253 if (defaultProgram != "") { |
254 // std::cerr << "first selecting default program " << defaultProgram << std::endl; | 254 // std::cerr << "first selecting default program " << defaultProgram << std::endl; |
255 instance->selectProgram(defaultProgram); | 255 instance->selectProgram(defaultProgram); |
256 } | 256 } |
257 if (program != "") { | 257 if (program != "") { |
258 // std::cerr << "now selecting desired program " << program.toStdString() << std::endl; | 258 // std::cerr << "now selecting desired program " << program << std::endl; |
259 instance->selectProgram(program.toStdString()); | 259 instance->selectProgram(program.toStdString()); |
260 } | 260 } |
261 instance->setIdealChannelCount(m_targetChannelCount); // reset! | 261 instance->setIdealChannelCount(m_targetChannelCount); // reset! |
262 | 262 |
263 return instance; | 263 return instance; |