• 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
Indexed Audio Unit Parameter
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Indexed Audio Unit Parameter


  • Subject: Indexed Audio Unit Parameter
  • From: Chad Wagner <email@hidden>
  • Date: Sun, 13 Apr 2008 02:42:21 -0400

I'm having a problem with audio unit parameters whose "unit" is set to kAudioUnitParameterUnit_Indexed. Everything works when the indexed values start at 0 and I provide an array of value strings. But one of my indexed parameters has no value strings, which causes a bus error in auval, and another indexed parameter starts at 1 rather than 0, but auval seems to be looking for an extra value string as if they started at 0 (i.e. my range is 1 to 3, I provide an array with 3 strings, but auval is looking for a 4th). In all cases, changing the unit to generic makes the problem go away, as does leaving it as indexed but starting at 0 and providing an array of value strings...

e.g. one of the parameters is a MIDI channel, which should be an integer from 1 to 16. I don't want it to start at 0, and it seems absurd to have to specify an array of strings "1" to "16". Is there a better way?

Am I misunderstanding the usage of kAudioUnitParameterUnit_Indexed? Is it required that the minimum value always be zero? Is it required that I always provide an array of value strings? Or is there something else I may be doing wrong?

FWIW, Xcode 2.4.1 on OS X 10.4.11, ppc powerbook...

thanks,
cw

_______________________________________________
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: Indexed Audio Unit Parameter
      • From: Chris Johnson <email@hidden>
  • Prev by Date: Re: AUGraph Problem
  • Next by Date: Re: AUGraph Problem
  • Previous by thread: Re: AUGraph Problem
  • Next by thread: Re: Indexed Audio Unit Parameter
  • Index(es):
    • Date
    • Thread