1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-11 09:03:36 +02:00

Once the effect is loaded, keep it loaded until Audacity ends.

This commit is contained in:
lllucius@gmail.com
2013-10-25 21:25:48 +00:00
parent 356d0d2d03
commit 0a152d8f46

View File

@@ -144,7 +144,10 @@ wxString AudioUnitEffect::GetEffectAction()
bool AudioUnitEffect::Init()
{
OpenAComponent(mComponent, &mUnit);
if (!mUnit) {
OpenAComponent(mComponent, &mUnit);
}
if (!mUnit) {
return false;
}
@@ -243,8 +246,6 @@ bool AudioUnitEffect::Process()
void AudioUnitEffect::End()
{
CloseComponent(mUnit);
mUnit = NULL;
}
bool AudioUnitEffect::SetRateAndChannels(AudioUnit unit,