| 455 | |
| 456 | const int rc = run_process(options.audio_converter, args); |
| 457 | if (rc != 0) { |
| 458 | throw std::runtime_error("convert_audio step failed: " + id); |
| 459 | } |
| 460 | context.values[id + ".audio_path"] = output.string(); |
| 461 | std::cout << "workflow_step=" << id << "\n"; |
| 462 | std::cout << "audio_path=" << output.string() << "\n"; |
| 463 | } |
| 464 | |
| 465 | void write_runtime_audio( |
| 466 | const std::filesystem::path & path, |
| 467 | const engine::runtime::AudioBuffer & audio) { |
| 468 | if (!path.parent_path().empty()) { |
| 469 | std::filesystem::create_directories(path.parent_path()); |
| 470 | } |
| 471 | engine::audio::WavPcm16Sink().write(path, engine::audio::AudioBuffer{ |
no test coverage detected