mirror of
https://github.com/cookiengineer/audacity
synced 2025-12-11 07:06:33 +01:00
Using QUANTIZED_TIME, functionally identical.
This commit is contained in:
@@ -66,8 +66,8 @@ bool EffectDtmf::Init()
|
|||||||
// but we do need to make sure we have the right number of samples at the project rate
|
// but we do need to make sure we have the right number of samples at the project rate
|
||||||
AudacityProject *p = GetActiveProject();
|
AudacityProject *p = GetActiveProject();
|
||||||
double projRate = p->GetRate();
|
double projRate = p->GetRate();
|
||||||
double quantMT0 = (double)((sampleCount)floor(mT0 * projRate + 0.5))/projRate;
|
double quantMT0 = QUANTIZED_TIME(mT0, projRate);
|
||||||
double quantMT1 = (double)((sampleCount)floor(mT1 * projRate + 0.5))/projRate;
|
double quantMT1 = QUANTIZED_TIME(mT1, projRate);
|
||||||
mDuration = quantMT1 - quantMT0;
|
mDuration = quantMT1 - quantMT0;
|
||||||
mIsSelection = true;
|
mIsSelection = true;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user