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 throw std::runtime_error("convert_audio step failed: " + id);
456 }
457 context.values[id + ".audio_path"] = output.string();
458 std::cout << "workflow_step=" << id << "\n";
459 std::cout << "audio_path=" << output.string() << "\n";
460}
461
462void write_runtime_audio(
463 const std::filesystem::path & path,
464 const engine::runtime::AudioBuffer & audio) {
465 if (!path.parent_path().empty()) {
466 std::filesystem::create_directories(path.parent_path());
467 }
468 engine::audio::WavPcm16Sink().write(path, engine::audio::AudioBuffer{
469 audio.sample_rate,
470 audio.channels,
471 audio.samples,

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