diff --git a/src/Audacity.h b/src/Audacity.h index 536ba922d..1ad029cbb 100644 --- a/src/Audacity.h +++ b/src/Audacity.h @@ -153,10 +153,10 @@ void QuitAudacity(); #endif // These macros are used widely, so declared here. -#define QUANTIZED_TIME(time, rate) ((double)((sampleCount)floor(((double)(time) * (rate)) + 0.5))) / (rate) +#define QUANTIZED_TIME(time, rate) (((double)((sampleCount)floor(((double)(time) * (rate)) + 0.5))) / (rate)) // dB - linear amplitude convesions -#define DB_TO_LINEAR(x) pow(10.0, x / 20.0) -#define LINEAR_TO_DB(x) 20.0 * log10(x) +#define DB_TO_LINEAR(x) (pow(10.0, (x) / 20.0)) +#define LINEAR_TO_DB(x) (20.0 * log10(x)) // Marks strings for extraction only...must use wxGetTranslation() to translate. #define XO(s) wxT(s)