• 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: Stefan Gretscher <email@hidden>
  • Date: Tue, 30 Jan 2007 16:05:55 +0100

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: Stephen Blinkhorn <email@hidden>
References: 
 >AudioUnitSetProperty() returns -10879 (From: Stephen Blinkhorn <email@hidden>)
 >Re: AudioUnitSetProperty() returns -10879 (From: Stephen Blinkhorn <email@hidden>)

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