| 700 | } |
| 701 | |
| 702 | ModuleCategory ModuleFactory::GetModuleCategory(std::string typeName) |
| 703 | { |
| 704 | if (mFactoryMap.find(typeName) != mFactoryMap.end()) |
| 705 | return mFactoryMap[typeName].mCategory; |
| 706 | if (juce::String(typeName).endsWith(kPluginSuffix)) |
| 707 | return kModuleCategory_Synth; |
| 708 | if (juce::String(typeName).endsWith(kMidiControllerSuffix)) |
| 709 | return kModuleCategory_Instrument; |
| 710 | if (juce::String(typeName).endsWith(kEffectChainSuffix)) |
| 711 | return kModuleCategory_Audio; |
| 712 | return kModuleCategory_Other; |
| 713 | } |
| 714 | |
| 715 | ModuleCategory ModuleFactory::GetModuleCategory(Spawnable spawnable) |
| 716 | { |
no test coverage detected