| 26 | } |
| 27 | |
| 28 | bool is_wav_file(const std::filesystem::path & path) { |
| 29 | auto ext = path.extension().string(); |
| 30 | std::transform(ext.begin(), ext.end(), ext.begin(), [](unsigned char ch) { |
| 31 | return static_cast<char>(std::tolower(ch)); |
| 32 | }); |
| 33 | return ext == ".wav"; |
| 34 | } |
| 35 | |
| 36 | std::vector<std::filesystem::path> sorted_wav_files(const std::filesystem::path & input_dir) { |
| 37 | if (!std::filesystem::is_directory(input_dir)) { |
no test coverage detected