Mercurial > hg > vampy-host
comparison native/vampyhost.cpp @ 77:aa8491a11530
Naming: Constants -> CONSTANTS
author | Chris Cannam |
---|---|
date | Wed, 21 Jan 2015 12:22:13 +0000 |
parents | 2437c52b4d62 |
children | 650f0697812f |
comparison
equal
deleted
inserted
replaced
76:b2afd385586f | 77:aa8491a11530 |
---|---|
289 if (!dict) { | 289 if (!dict) { |
290 cerr << "ERROR: initvampyhost: Failed to obtain module dictionary" << endl; | 290 cerr << "ERROR: initvampyhost: Failed to obtain module dictionary" << endl; |
291 return; | 291 return; |
292 } | 292 } |
293 | 293 |
294 if (setint(dict, "OneSamplePerStep", | 294 if (setint(dict, "ONE_SAMPLE_PER_STEP", |
295 Plugin::OutputDescriptor::OneSamplePerStep) < 0 || | 295 Plugin::OutputDescriptor::OneSamplePerStep) < 0 || |
296 setint(dict, "FixedSampleRate", | 296 setint(dict, "FIXED_SAMPLE_RATE", |
297 Plugin::OutputDescriptor::FixedSampleRate) < 0 || | 297 Plugin::OutputDescriptor::FixedSampleRate) < 0 || |
298 setint(dict, "VariableSampleRate", | 298 setint(dict, "VARIABLE_SAMPLE_RATE", |
299 Plugin::OutputDescriptor::VariableSampleRate) < 0 || | 299 Plugin::OutputDescriptor::VariableSampleRate) < 0 || |
300 setint(dict, "TimeDomain", | 300 setint(dict, "TIME_DOMAIN", |
301 Plugin::TimeDomain) < 0 || | 301 Plugin::TimeDomain) < 0 || |
302 setint(dict, "FrequencyDomain", | 302 setint(dict, "FREQUENCY_DOMAIN", |
303 Plugin::FrequencyDomain) < 0 || | 303 Plugin::FrequencyDomain) < 0 || |
304 setint(dict, "AdaptNone", | 304 setint(dict, "ADAPT_NONE", |
305 0) < 0 || | 305 0) < 0 || |
306 setint(dict, "AdaptInputDomain", | 306 setint(dict, "ADAPT_INPUT_DOMAIN", |
307 PluginLoader::ADAPT_INPUT_DOMAIN) < 0 || | 307 PluginLoader::ADAPT_INPUT_DOMAIN) < 0 || |
308 setint(dict, "AdaptChannelCount", | 308 setint(dict, "ADAPT_CHANNEL_COUNT", |
309 PluginLoader::ADAPT_CHANNEL_COUNT) < 0 || | 309 PluginLoader::ADAPT_CHANNEL_COUNT) < 0 || |
310 setint(dict, "AdaptBufferSize", | 310 setint(dict, "ADAPT_BUFFER_SIZE", |
311 PluginLoader::ADAPT_BUFFER_SIZE) < 0 || | 311 PluginLoader::ADAPT_BUFFER_SIZE) < 0 || |
312 setint(dict, "AdaptAllSafe", | 312 setint(dict, "ADAPT_ALL_SAFE", |
313 PluginLoader::ADAPT_ALL_SAFE) < 0 || | 313 PluginLoader::ADAPT_ALL_SAFE) < 0 || |
314 setint(dict, "AdaptAll", | 314 setint(dict, "ADAPT_ALL", |
315 PluginLoader::ADAPT_ALL) < 0) { | 315 PluginLoader::ADAPT_ALL) < 0) { |
316 cerr << "ERROR: initvampyhost: Failed to add enums to module dictionary" << endl; | 316 cerr << "ERROR: initvampyhost: Failed to add enums to module dictionary" << endl; |
317 return; | 317 return; |
318 } | 318 } |
319 } | 319 } |