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

Function json_option_string

app/cli/request.cpp:47–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45engine::runtime::AudioBuffer read_audio_buffer(const std::filesystem::path & path) {
46 const auto wav = engine::audio::read_wav_f32(path);
47 return engine::runtime::AudioBuffer{
48 wav.sample_rate,
49 wav.channels,
50 wav.samples,
51 };
52}
53
54engine::runtime::AudioBuffer read_audio_buffer(std::istream & input) {
55 const auto wav = engine::audio::read_wav_f32(input);
56 return engine::runtime::AudioBuffer{
57 wav.sample_rate,
58 wav.channels,
59 wav.samples,
60 };
61}

Callers 5

json_options_mapFunction · 0.85
add_option_from_jsonFunction · 0.85
merged_optionsFunction · 0.85
json_string_mapFunction · 0.85

Calls 7

stringify_numberFunction · 0.85
stringifyFunction · 0.85
is_stringMethod · 0.80
is_boolMethod · 0.80
as_boolMethod · 0.80
is_numberMethod · 0.80
as_numberMethod · 0.80

Tested by

no test coverage detected