| 36 | } // namespace |
| 37 | |
| 38 | engine::runtime::AudioBuffer read_audio_buffer(const std::filesystem::path & path) { |
| 39 | const auto wav = engine::audio::read_wav_f32(path); |
| 40 | return engine::runtime::AudioBuffer{ |
| 41 | wav.sample_rate, |
| 42 | wav.channels, |
| 43 | wav.samples, |
| 44 | }; |
| 45 | } |
| 46 | |
| 47 | engine::runtime::AudioBuffer read_audio_buffer(std::istream & input) { |
| 48 | const auto wav = engine::audio::read_wav_f32(input); |
no test coverage detected