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

Function require_model_dir

src/framework/audio/utility_api.cpp:20–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18namespace {
19
20std::filesystem::path require_model_dir(const AudioUtilityPaths & paths, const char * name) {
21 const auto dir = paths.assets_root / name;
22 if (!std::filesystem::is_directory(dir)) {
23 throw std::runtime_error("audio utility assets directory is missing: " + dir.string());
24 }
25 return dir;
26}
27
28bool is_wav_file(const std::filesystem::path & path) {
29 auto ext = path.extension().string();

Callers 4

denoise_fileFunction · 0.85
denoise_directoryFunction · 0.85
super_resolve_fileFunction · 0.85
super_resolve_directoryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected