| 18 | namespace { |
| 19 | |
| 20 | std::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 | |
| 28 | bool is_wav_file(const std::filesystem::path & path) { |
| 29 | auto ext = path.extension().string(); |
no outgoing calls
no test coverage detected