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