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

Function require

tests/unittests/test_audio_utility_api.cpp:36–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34}
35
36void require(bool condition, const std::string & message) {
37 if (!condition) {
38 throw std::runtime_error(message);
39 }
40}
41
42std::vector<float> tone(int sample_rate, int samples, float base_hz) {
43 constexpr float kPi = 3.14159265358979323846f;

Callers 2

require_wav_shapeFunction · 0.70
mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected