mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-28 22:28:44 +02:00
parent
726139ebc1
commit
508ed858aa
@ -102,7 +102,6 @@ AudioUnitEffect::AudioUnitEffect(wxString name, Component component):
|
|||||||
SetEffectFlags(PLUGIN_EFFECT | PROCESS_EFFECT);
|
SetEffectFlags(PLUGIN_EFFECT | PROCESS_EFFECT);
|
||||||
|
|
||||||
mUnit = NULL;
|
mUnit = NULL;
|
||||||
OpenAComponent(mComponent, &mUnit);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
AudioUnitEffect::~AudioUnitEffect()
|
AudioUnitEffect::~AudioUnitEffect()
|
||||||
@ -145,6 +144,7 @@ wxString AudioUnitEffect::GetEffectAction()
|
|||||||
|
|
||||||
bool AudioUnitEffect::Init()
|
bool AudioUnitEffect::Init()
|
||||||
{
|
{
|
||||||
|
OpenAComponent(mComponent, &mUnit);
|
||||||
if (!mUnit) {
|
if (!mUnit) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -243,6 +243,8 @@ bool AudioUnitEffect::Process()
|
|||||||
|
|
||||||
void AudioUnitEffect::End()
|
void AudioUnitEffect::End()
|
||||||
{
|
{
|
||||||
|
CloseComponent(mUnit);
|
||||||
|
mUnit = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool AudioUnitEffect::SetRateAndChannels(AudioUnit unit,
|
bool AudioUnitEffect::SetRateAndChannels(AudioUnit unit,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user