| 184 | audio.samples, |
| 185 | audio.sample_rate, |
| 186 | audio.channels, |
| 187 | 24000)); |
| 188 | } |
| 189 | |
| 190 | runtime::AudioBuffer load_audio_24k_mono(const std::filesystem::path & path) { |
| 191 | return make_audio_buffer(24000, engine::audio::read_wav_f32_as_mono_linear_resampled(path, 24000)); |
| 192 | } |
| 193 | |
| 194 | void trim_audio_seconds(runtime::AudioBuffer & audio, float seconds) { |
| 195 | if (seconds < 0.0F) { |
no outgoing calls
no test coverage detected