1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-12-22 16:41:18 +01:00

Remove overloads for sampleCount from ConfigInterface...

... The value was always cast to int anyway when writing, and it was used
only for one value in VST effect, which did not need 64 bits
This commit is contained in:
Paul Licameli
2016-08-19 13:18:48 -04:00
parent 854651306c
commit 49e699b1df
8 changed files with 4 additions and 109 deletions

View File

@@ -1085,14 +1085,12 @@ VSTEffect::VSTEffect(const wxString & path, VSTEffect *master)
mMidiIns = 0;
mMidiOuts = 0;
mSampleRate = 44100;
mBlockSize = 0;
mBlockSize = mUserBlockSize = 8192;
mBufferDelay = 0;
mProcessLevel = 1; // in GUI thread
mHasPower = false;
mWantsIdle = false;
mWantsEditIdle = false;
mUserBlockSize = 8192;
mBlockSize = mUserBlockSize;
mUseLatency = true;
mReady = false;
@@ -1330,15 +1328,7 @@ int VSTEffect::GetMidiOutCount()
sampleCount VSTEffect::SetBlockSize(sampleCount maxBlockSize)
{
if (mUserBlockSize > maxBlockSize)
{
mBlockSize = maxBlockSize;
}
else
{
mBlockSize = mUserBlockSize;
}
mBlockSize = std::min((int)maxBlockSize, mUserBlockSize);
return mBlockSize;
}