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

Function require_positive

src/framework/audio/chunking.cpp:15–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13namespace engine::audio {
14namespace {
15
16void require_positive(int64_t value, const char * name) {
17 if (value <= 0) {
18 throw std::runtime_error(std::string("Audio chunker requires positive ") + name);
19 }
20}
21
22int64_t reflect_index(int64_t index, int64_t length) {

Callers 9

reflect_indexFunction · 0.70
validate_copy_shapeFunction · 0.70
plan_audio_chunksFunction · 0.70
plan_vad_audio_chunksFunction · 0.70
slice_audio_bufferFunction · 0.70
make_linear_fade_windowFunction · 0.70
overlap_add_planar_chunkFunction · 0.70

Calls 1

stringFunction · 0.50

Tested by

no test coverage detected