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

AudioUnitSetProperty() returns -10879


  • Subject: AudioUnitSetProperty() returns -10879
  • From: Stephen Blinkhorn <email@hidden>
  • Date: Sat, 27 Jan 2007 15:37:33 +0000

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:

AudioUnitGetPropertyInfo(thisAU, kAudioUnitProperty_ParameterInfo, kAudioUnitScope_Global, kGlobalSynthType1, &size, &outWriteable);
..first I call the above which always returns NULL for outWriteable. does this mean I cannot call AudioUnitSetProperty() on it?


AudioUnitGetProperty(thisAU, kAudioUnitProperty_ParameterInfo, kAudioUnitScope_Global, kGlobalSynthType1, &paramInfo, &size);
..but when I do this second call I can see that the IsReadable and IsWriteable parameter flags are still set.

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


I am running the code above inside an AUParameterListenerProc which is a static member function so even if I successfully call AudioUnitSetProperty() I can't call PropertyChanged() to refresh the generic view. Have I missed something in the docs or have I just chosen the most retarded way of achieving what I want?

Any help greatly appreciated,

Stephen.
_______________________________________________
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>
  • Prev by Date: Re: Decoding raw AMR
  • Next by Date: CocoaAUHost example crasches
  • Previous by thread: Re: n-chan effect with per-channel params question
  • Next by thread: Re: AudioUnitSetProperty() returns -10879
  • Index(es):
    • Date
    • Thread