1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-07-19 14:17:41 +02:00

Improved QUANTIZED_TIME macro, just in case integers are passed.

This commit is contained in:
martynshaw99 2010-09-13 23:01:12 +00:00
parent 50d2a5b665
commit 8e94cd5369

View File

@ -153,4 +153,4 @@ void QuitAudacity();
#endif
// This macro is used widely, so declared here.
#define QUANTIZED_TIME(time, rate) ((double)((sampleCount)floor(((time) * (rate)) + 0.5))) / (rate)
#define QUANTIZED_TIME(time, rate) ((double)((sampleCount)floor(((double)(time) * (rate)) + 0.5))) / (rate)