| 16 | } |
| 17 | |
| 18 | ToneGenerator::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 | |
| 24 | ToneGenerator::ToneGenerator(Tone (*modulation)(), int call_every, Waveform type, float sample_rate) : _sample_rate(sample_rate), _frequency_high(sample_rate/2) { |
| 25 | _modulation = modulation; |
nothing calls this directly
no outgoing calls
no test coverage detected