diff --git a/src/modules/others/audio.cpp b/src/modules/others/audio.cpp index c2ed93e249..7abc58fad7 100644 --- a/src/modules/others/audio.cpp +++ b/src/modules/others/audio.cpp @@ -689,7 +689,7 @@ void playTone(unsigned int frequency, unsigned long duration, short waveType) { if (waveType == 0) { file->addAudioGenerators([volumeScale, hz](const float time) { - float v = (sin(hz * time) >= 0) ? 1.0f : -1.0f; + float v = (sin(TWO_PI * hz * time) >= 0) ? 1.0f : -1.0f; v *= volumeScale; return v; });