mirror of
https://github.com/cookiengineer/audacity
synced 2025-12-21 16:11:11 +01: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()
|
bool AudioUnitEffect::Init()
|
||||||
{
|
{
|
||||||
|
if (!mUnit) {
|
||||||
OpenAComponent(mComponent, &mUnit);
|
OpenAComponent(mComponent, &mUnit);
|
||||||
|
}
|
||||||
|
|
||||||
if (!mUnit) {
|
if (!mUnit) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@@ -243,8 +246,6 @@ bool AudioUnitEffect::Process()
|
|||||||
|
|
||||||
void AudioUnitEffect::End()
|
void AudioUnitEffect::End()
|
||||||
{
|
{
|
||||||
CloseComponent(mUnit);
|
|
||||||
mUnit = NULL;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool AudioUnitEffect::SetRateAndChannels(AudioUnit unit,
|
bool AudioUnitEffect::SetRateAndChannels(AudioUnit unit,
|
||||||
|
|||||||
Reference in New Issue
Block a user