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

Function require_valid_time_span

src/framework/audio/chunking.cpp:69–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67 throw std::runtime_error("Audio chunker output size mismatch");
68 }
69}
70
71void require_valid_time_span(
72 const runtime::TimeSpan & span,
73 int64_t audio_samples,
74 const char * label) {
75 if (span.start_sample < 0 || span.end_sample <= span.start_sample || span.end_sample > audio_samples) {
76 throw std::runtime_error(std::string(label) + " span is outside audio bounds");
77 }
78}
79

Callers 2

plan_vad_audio_chunksFunction · 0.85
slice_audio_bufferFunction · 0.85

Calls 1

stringFunction · 0.50

Tested by

no test coverage detected