mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-08 14:13:57 +01:00
Convert sampleCount <-> floating or -> long long explicitly ...
... A non-narrowing conversion out to long long is a necessity, but the conversions to float and double are simply conveniences. Conversion from floating is explicit, to avoid unintended consequences with arithmetic operators, when later sampleCount ceases to be an alias for an integral type. Some conversions are not made explicit, where I expect to change the type of the variable later to have mere size_t width.
This commit is contained in:
@@ -774,7 +774,7 @@ sampleCount LV2Effect::GetLatency()
|
||||
if (mUseLatency && mLatencyPort >= 0 && !mLatencyDone)
|
||||
{
|
||||
mLatencyDone = true;
|
||||
return mLatency;
|
||||
return sampleCount( mLatency );
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user