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

Function sample_points_f32

src/framework/debug/trace.cpp:223–239  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

221}
222
223std::string sample_points_f32(const std::vector<float> & values) {
224 if (values.empty()) {
225 return "[]";
226 }
227 const std::vector<size_t> points = sample_point_indices(values.size());
228 std::ostringstream oss;
229 oss << "[";
230 for (size_t i = 0; i < points.size(); ++i) {
231 if (i != 0) {
232 oss << ",";
233 }
234 const size_t index = points[i];
235 oss << index << ":" << values[index];
236 }
237 oss << "]";
238 return oss.str();
239}
240
241std::string sample_points_i32(const std::vector<int32_t> & values) {
242 if (values.empty()) {

Callers 1

trace_log_f32Function · 0.85

Calls 4

sample_point_indicesFunction · 0.85
strMethod · 0.80
emptyMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected