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

Function is_wav_file

src/framework/audio/utility_api.cpp:28–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26}
27
28bool 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
36std::vector<std::filesystem::path> sorted_wav_files(const std::filesystem::path & input_dir) {
37 if (!std::filesystem::is_directory(input_dir)) {

Callers 1

sorted_wav_filesFunction · 0.85

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected