MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / find_loader

Method find_loader

src/framework/runtime/registry.cpp:160–170  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

158 }
159}
160
161const IVoiceModelLoader * ModelRegistry::find_loader(const ModelLoadRequest & request) const {
162 for (const auto & loader : loaders_) {
163 if (request.family_hint.has_value() && loader->family() != *request.family_hint) {
164 continue;
165 }
166 if (request.family_hint.has_value()) {
167 return loader.get();
168 }
169 if (loader->can_load(request)) {
170 return loader.get();
171 }
172 }
173 return nullptr;

Callers

nothing calls this directly

Calls 3

familyMethod · 0.45
can_loadMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected