Re: (UPDATE) First instance of plugin controls all other instances?
Re: (UPDATE) First instance of plugin controls all other instances?
- Subject: Re: (UPDATE) First instance of plugin controls all other instances?
- From: Artemiy Pavlov <email@hidden>
- Date: Thu, 3 Feb 2011 12:55:10 +0200
Thanks for your reply!
So did you declare the parameter array in your @interface, and then
assigned parameter elements the usual way in the .m file?
Doesn't seem to work here... Compiles with many warnings, but works
the same as before. Here is a snippet of my code.
SinevibesDrift_CocoaView.h:
@interface SinevibesDrift_CocoaView : NSControl
{
AudioUnitParameter parameter[3];
}
SinevibesDrift_CocoaView.m:
parameter[] = {
{ 0, kModRate, kAudioUnitScope_Global, 0 },
{ 0, kModSmoothness, kAudioUnitScope_Global, 0 },
{ 0, kModDepth, kAudioUnitScope_Global, 0 }
};
Thanks very much again,
Artemiy.
On 3 Feb 2011, at 12:11, ipmlists wrote:
IIRC the 'parameter' array in Apple's template is (or was when I last
looked) declared as a global
rather than an instance variable, in which case changing that should
fix it. See this thread:
http://lists.apple.com/archives/coreaudio-api/2008/Oct/msg00066.html
hth
Iain
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden