| 17 | namespace { |
| 18 | |
| 19 | bool is_wav_path(const std::filesystem::path & path) { |
| 20 | std::string ext = path.extension().string(); |
| 21 | std::transform(ext.begin(), ext.end(), ext.begin(), [](unsigned char ch) { |
| 22 | return static_cast<char>(std::tolower(ch)); |
| 23 | }); |
| 24 | return ext == ".wav"; |
| 25 | } |
| 26 | |
| 27 | std::string lowercase_extension(const std::filesystem::path & path) { |
| 28 | std::string ext = path.extension().string(); |
no test coverage detected