From 38f24ce3e43200a1dde31f97fa37c2cf4a816ba0 Mon Sep 17 00:00:00 2001 From: Jack Andersen Date: Mon, 5 Sep 2016 19:50:42 -1000 Subject: [PATCH] Minor literal value adjustment --- include/amuse/AudioGroupPool.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/amuse/AudioGroupPool.hpp b/include/amuse/AudioGroupPool.hpp index 9491729..821617b 100644 --- a/include/amuse/AudioGroupPool.hpp +++ b/include/amuse/AudioGroupPool.hpp @@ -30,7 +30,7 @@ struct ADSR double getAttack() const { return attack / 1000.0; } double getDecay() const { return (decay == 0x8000) ? 0.0 : (decay / 1000.0); } double getSustain() const { return sustain / double(0x1000); } - double getRelease() const { return release / double(1000); } + double getRelease() const { return release / 1000.0; } }; /** Defines phase-based volume curve for macro volume control (modified DLS standard) */ @@ -46,7 +46,7 @@ struct ADSRDLS double getAttack() const { return TimeCentsToSeconds(attack); } double getDecay() const { return TimeCentsToSeconds(decay); } double getSustain() const { return sustain / double(0x1000); } - double getRelease() const { return release / double(1000); } + double getRelease() const { return release / 1000.0; } double getVelToAttack(int8_t vel) const { if (velToAttack == 0x80000000)