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

Function parse_foreach_source

app/workflow/workflow.cpp:942–953  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

940 const auto mixed = engine::audio::mix_audio_to_reference_shape(inputs, normalize);
941 const auto output = resolve_workflow_path(workflow_string(step, "output"), context);
942 if (!output.parent_path().empty()) {
943 std::filesystem::create_directories(output.parent_path());
944 }
945 engine::audio::WavPcm16Sink().write(output, engine::audio::AudioBuffer{
946 mixed.sample_rate,
947 mixed.channels,
948 mixed.samples,
949 });
950 context.values[id + ".audio_path"] = output.string();
951 std::cout << "workflow_step=" << id << "\n";
952 std::cout << "audio_path=" << output.string() << "\n";
953}
954
955std::string parse_foreach_source(const engine::io::json::Value & step) {
956 std::string value = workflow_string(step, "foreach");

Callers 2

run_model_step_foreachFunction · 0.85
run_workflow_stepFunction · 0.85

Calls 2

workflow_stringFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected