Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Audio Units: a few questions




On 21/06/2006, at 12:55 PM, Artemiy Pavlov wrote:

Hello all!

I have a few questions on Audio Units, I'd appreciate any help.

1. How is it possible to pass variables from one Process() run to another? I mean there are things needed to remember like oscillator phases and such, but where do I define these variables? Will simple global-scope variables work?

Have a look at the FilterDemo code in the CA SDK (/Developer/Examples/ CoreAudio)

2. Is there an "Integer" parameter type? What I want is a slider which would step from, say, 1 to 10 in single steps (1, 2, 3).
Yes - declare the parameter as an indexed type - there's an example of this in the SampleEffect unit in the SDK


3. Where should the plugin "instantiation" code be placed? What is the best way to initialize some data which would be accessible in Process()?

In the initialise call

Bill



Thanks very much!


Sincerely,

Artemiy Pavlov
Sineshine http://sineshine.com



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/coreaudio-api/email@hidden

This email sent to email@hidden

--
mailto:email@hidden
tel: +1 408 974 4056
________________________________________________________________________ __
"Much human ingenuity has gone into finding the ultimate Before.
The current state of knowledge can be summarized thus:
In the beginning, there was nothing, which exploded" - Terry Pratchett
________________________________________________________________________ __


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/coreaudio-api/email@hidden

This email sent to email@hidden
References: 
 >Audio Units: a few questions (From: Artemiy Pavlov <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.