| 59 | } |
| 60 | |
| 61 | void create_output_parent(const std::filesystem::path & output_wav) { |
| 62 | const auto parent = output_wav.parent_path(); |
| 63 | if (!parent.empty()) { |
| 64 | std::filesystem::create_directories(parent); |
| 65 | } |
| 66 | } |
| 67 | |
| 68 | std::vector<float> read_mono_resampled(const std::filesystem::path & path, int sample_rate) { |
| 69 | return read_wav_f32_as_mono_linear_resampled(path, sample_rate); |
no test coverage detected