mirror of
https://github.com/cookiengineer/audacity
synced 2026-03-19 12:46:35 +01:00
Improved QUANTIZED_TIME macro, just in case integers are passed.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user