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