• 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
Re: Volume control
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Volume control


  • Subject: Re: Volume control
  • From: "Michael Forrest" <email@hidden>
  • Date: Fri, 29 Feb 2008 00:17:48 +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
 _______________________________________________
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:
    • Nothing to do with Volume control
      • From: Steve Bird <email@hidden>
References: 
 >Volume control (From: "Clint Johnson" <email@hidden>)
 >Re: Volume control (From: Alexander von Below <email@hidden>)

  • Prev by Date: Re: Volume control
  • Next by Date: The Scaffold
  • Previous by thread: Re: Volume control
  • Next by thread: Nothing to do with Volume control
  • Index(es):
    • Date
    • Thread