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

Function json_options_map

app/cli/request.cpp:60–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58 return engine::runtime::AudioBuffer{
59 wav.sample_rate,
60 wav.channels,
61 wav.samples,
62 };
63}
64
65std::string json_option_string(const engine::io::json::Value & value) {
66 if (value.is_string()) {
67 return value.as_string();
68 }
69 if (value.is_bool()) {
70 return value.as_bool() ? "true" : "false";
71 }
72 if (value.is_number()) {

Callers 3

build_request_from_jsonFunction · 0.85
options_from_objectFunction · 0.85
options_from_objectFunction · 0.85

Calls 2

json_option_stringFunction · 0.85
is_nullMethod · 0.80

Tested by

no test coverage detected