From 1c955384fbdf52d96f73799ace892d073dc4d29d Mon Sep 17 00:00:00 2001 From: Craig Hansen-Sturm Date: Mon, 15 Sep 2014 09:56:11 -0700 Subject: [PATCH] coding standard/typo --- libraries/audio/src/AudioSourceTone.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libraries/audio/src/AudioSourceTone.h b/libraries/audio/src/AudioSourceTone.h index 812e9fe2c2..4a9046a6b2 100644 --- a/libraries/audio/src/AudioSourceTone.h +++ b/libraries/audio/src/AudioSourceTone.h @@ -27,7 +27,7 @@ class AudioSourceTone _omega = _frequency / _sampleRate * TWO_PI; _epsilon = 2.0f * sinf(_omega / 2.0f); _yq1 = cosf(-1.0f * _omega); - _y1 = sinf(+1.04 * _omega); + _y1 = sinf(+1.0f * _omega); } public: @@ -40,7 +40,9 @@ public: } void initialize() { - setParameters(SAMPLE_RATE, 220.0f, 0.708f); + const float32_t FREQUENCY_220_HZ = 220.0f; + const float32_t GAIN_MINUS_3DB = 0.708f; + setParameters(SAMPLE_RATE, FREQUENCY_220_HZ, GAIN_MINUS_3DB); } void finalize() {