MCPcopy Create free account
hub / github.com/OpenEarable/open-earable / ToneGenerator

Method ToneGenerator

src/audio_play/ToneGenerator.cpp:18–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16}
17
18ToneGenerator::ToneGenerator(float frequency, float amplitude, Waveform type, float sample_rate) : _sample_rate(sample_rate), _frequency_high(sample_rate/2) {
19 set_frequency(frequency);
20 set_amplitude(amplitude);
21 set_waveform(type);
22}
23
24ToneGenerator::ToneGenerator(Tone (*modulation)(), int call_every, Waveform type, float sample_rate) : _sample_rate(sample_rate), _frequency_high(sample_rate/2) {
25 _modulation = modulation;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected