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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user