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

Function read_audio_buffer

tests/core/audio_task_warm_bench.h:93–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91}
92
93inline runtime::AudioBuffer read_audio_buffer(const std::filesystem::path & path) {
94 const auto wav = audio::read_wav_f32(path);
95 runtime::AudioBuffer buffer;
96 buffer.sample_rate = wav.sample_rate;
97 buffer.channels = wav.channels;
98 buffer.samples = wav.samples;
99 return buffer;
100}
101
102inline io::json::Value number(double value) {
103 return io::json::Value::make_number(value);

Callers 4

mainFunction · 0.50
write_clipped_wavFunction · 0.50
mainFunction · 0.50

Calls 1

read_wav_f32Function · 0.50

Tested by

no test coverage detected