• 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: AudioUnitSetProperty() returns -10879
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AudioUnitSetProperty() returns -10879


  • Subject: Re: AudioUnitSetProperty() returns -10879
  • From: Stephen Blinkhorn <email@hidden>
  • Date: Tue, 30 Jan 2007 17:04:26 +0000

Hi Stefan, many thanks for your reply.

Originally I was just going to use generic parameters and map their range from 0..1 to whatever is appropriate at run-time but I wanted automation editors to display the actual value not just 0..1 (because it can be more useful for programming sequences that way). I'll be making a custom GUI so I'm sure I can just display the mapped value in there too. Does a user really need to know that a filter cutoff is set at say 100Hz if it is doing what they want anyway? I may find out the hard way..

Thanks,
Stephen.


On 30 Jan 2007, at 15:05, Stefan Gretscher wrote:

Hi Stephen,

if possible I'd advise against modifying the parameter characteristics at runtime.
Currently most host apps don't support this properly, and it may cause trouble if
the user has recorded automation for the parameter.
If you still decide to go down this route, then use the AudioUnitEvent API
(see http://developer.apple.com/technotes/tn2002/tn2104.html) and trigger
a property change notification for kAudioUnitProperty_ParameterInfo so that
any hosts and views can update accordingly.


Best,
Stefan

Am 29.01.2007 um 19:00 schrieb Stephen Blinkhorn:

On 27 Jan 2007, at 15:37, Stephen Blinkhorn wrote:

Hello all,

I am trying to update a parameter's min,max,default and unit values in response to some parameter change. I'm having problems calling AudioUnitSetProperty() from inside a parameter listener. It always returns invalid property error:

AudioUnitSetProperty(thisAU, kAudioUnitProperty_ParameterInfo, kAudioUnitScope_Global, kGlobalSynthType1, &paramInfo, size);
..this call returns -10879.

Right, I see. You can't use kAudioUnitProperty_ParameterInfo with AudioUnitSetProperty() it is intended only for use with AudioUnitGetProperty(). So if I want to redefine a parameter's min,max & unit values in response to a parameter change elsewhere what is the best approach? Destroy the original and create a new parameter?


TIA for any help,
Stephen.




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


This email sent to email@hidden


_______________________________________________ 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: AudioUnitSetProperty() returns -10879
      • From: William Stewart <email@hidden>
References: 
 >AudioUnitSetProperty() returns -10879 (From: Stephen Blinkhorn <email@hidden>)
 >Re: AudioUnitSetProperty() returns -10879 (From: Stephen Blinkhorn <email@hidden>)
 >Re: AudioUnitSetProperty() returns -10879 (From: Stefan Gretscher <email@hidden>)

  • Prev by Date: disappearing MIDI control events...
  • Next by Date: Re: Decoding raw AMR
  • Previous by thread: Re: AudioUnitSetProperty() returns -10879
  • Next by thread: Re: AudioUnitSetProperty() returns -10879
  • Index(es):
    • Date
    • Thread