MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / write_runtime_audio

Function write_runtime_audio

app/workflow/workflow.cpp:457–468  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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
465void 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{

Callers 1

run_chunked_model_stepFunction · 0.85

Calls 3

WavPcm16SinkClass · 0.85
emptyMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected