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:
parent
50d2a5b665
commit
8e94cd5369
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user