| 52 | } |
| 53 | |
| 54 | void require_wav_shape(const std::filesystem::path & path, int sample_rate) { |
| 55 | const auto wav = engine::audio::read_wav_f32(path); |
| 56 | require(wav.sample_rate == sample_rate, "output sample rate mismatch: " + path.string()); |
| 57 | require(wav.channels == 1, "output channel count mismatch: " + path.string()); |
| 58 | require(!wav.samples.empty(), "output WAV is empty: " + path.string()); |
| 59 | } |
| 60 | |
| 61 | } // namespace |
| 62 |
no test coverage detected