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

Function parse_run_mode

src/framework/runtime/session.cpp:198–206  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

196 if (src.sample_rate <= 0 || src.channels <= 0) {
197 throw std::runtime_error("audio append requires valid source format");
198 }
199 if (dst.sample_rate == 0) {
200 dst.sample_rate = src.sample_rate;
201 dst.channels = src.channels;
202 } else if (dst.sample_rate != src.sample_rate || dst.channels != src.channels) {
203 throw std::runtime_error("audio append requires matching audio format");
204 }
205 dst.samples.insert(dst.samples.end(), src.samples.begin(), src.samples.end());
206}
207
208std::vector<std::byte> bytes_from_string(std::string_view value) {
209 std::vector<std::byte> out;

Callers 6

mainFunction · 0.85
load_modelsMethod · 0.85
run_model_step_implFunction · 0.85
run_chunked_model_stepFunction · 0.85
run_model_step_foreachFunction · 0.85
build_task_specFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected