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

Function is_wav_path

app/cli/batch.cpp:19–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17namespace {
18
19bool 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
27std::string lowercase_extension(const std::filesystem::path & path) {
28 std::string ext = path.extension().string();

Callers 1

build_audio_dir_batchFunction · 0.70

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected