The Scaffold
The Scaffold
- Subject: The Scaffold
- From: "Michael Forrest" <email@hidden>
- Date: Fri, 29 Feb 2008 00:19:14 +0000
Okay guys. I'm new to this list, I'm new to a lot of the syntax bouncing around these parts but I know what makes good code. So how can THIS be in the scaffold for a new Audio Unit:
enum {
kParam_One =0,
kNumberOfParameters =1
};
Why does this anger me?
- if I add a parameter I need to add it and also change the kNumberOfParameters value manually
- this enum increments integers perfectly well without being instructed, so why put the assignments in at all
- if I make a cocoa AU this is duplicated in two files so if I want to add a parameter I have to update two independant enums in two separate files
This makes my blood curdle. And I'm seeing a lot of switch statements. I seriously hope this is not indicative of what I will find as I delve further into the AU framework...
--
Michael Forrest
http://mf.grimaceworks.com
(p.s. sorry for replying to the first email I saw the first time round - I forgot to change the subject line)
_______________________________________________
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