• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
The Scaffold
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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?
  1. if I add a parameter I need to add it and also change the kNumberOfParameters value manually
  2. this enum increments integers perfectly well without being instructed, so why put the assignments in at all
  3. 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

  • Follow-Ups:
    • Re: The Scaffold
      • From: Brian Willoughby <email@hidden>
  • Prev by Date: Re: Volume control
  • Next by Date: Nothing to do with Volume control
  • Previous by thread: RE: Volume control
  • Next by thread: Re: The Scaffold
  • Index(es):
    • Date
    • Thread