summaryrefslogtreecommitdiffstats
path: root/quantum/audio/voices.c
diff options
context:
space:
mode:
authorOle Anders <git@swoy.org>2017-03-28 15:55:33 +0200
committerOle Anders <git@swoy.org>2017-03-28 15:55:33 +0200
commit62faa20ef6ddab7dacc74123b2253cf25b5c20f7 (patch)
tree281ae30283f7491b2529465da4897dc2ddd7088c /quantum/audio/voices.c
parentd5ee0194abf5cc9df4086a89ad78cf188352028a (diff)
parent5e4daf1c6db980fad269fe7b013205008bfe701e (diff)
downloadqmk_firmware-62faa20ef6ddab7dacc74123b2253cf25b5c20f7.tar.gz
qmk_firmware-62faa20ef6ddab7dacc74123b2253cf25b5c20f7.tar.xz
Merge remote-tracking branch 'refs/remotes/qmk/master'
Diffstat (limited to 'quantum/audio/voices.c')
-rw-r--r--quantum/audio/voices.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/quantum/audio/voices.c b/quantum/audio/voices.c
index 8326e91ea..c2edb75f0 100644
--- a/quantum/audio/voices.c
+++ b/quantum/audio/voices.c
@@ -24,6 +24,7 @@ void voice_deiterate() {
float voice_envelope(float frequency) {
// envelope_index ranges from 0 to 0xFFFF, which is preserved at 880.0 Hz
+ __attribute__ ((unused))
uint16_t compensated_index = (uint16_t)((float)envelope_index * (880.0 / frequency));
switch (voice) {