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