• 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: AudioUnit Events
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AudioUnit Events


  • Subject: Re: AudioUnit Events
  • From: Mark Pauley <email@hidden>
  • Date: Wed, 16 May 2007 13:11:17 -0700

You should do a quick search of this list ( I think it's archived online somewhere). Lots of questions have been answered before.

William Stewart said:

Instead of calling SetParameter, you should call AUParameterSet (<AudioToolbox/AudioUnitUtilities.>) - its nearly as simple :)

AUParameterSet appears to be a wrapper around SetParameter that also fires an event off, have you tried that?


_Mark

On May 16, 2007, at 1:00 PM, Bjorn Roche wrote:


On May 14, 2007, at 6:25 PM, Bjorn Roche wrote:

Hey there,

I am using Audio Unit events as described in technote 2104. I am a bit confused about a few points:

1. What is the responsibility of the host when it changes parameters, scheduling parameters and setting properties? In my experiments, it seems that events fire automatically when I change properties (as with OSStatus ret = AudioUnitSetProperty( ... kAudioUnitProperty_PresentPreset, ... ) ), but NOT when I change parameter values. I haven't tested scheduling parameters extensively, but that doesn't seem to fire events either. My conclusion is that I need to call AUEventListenerNotify after changing a parameter, but not after changing a property. Is this correct? What about scheduling changes?

Still not sure why AudioUnitSetProperty fires notification, but I've added my own notification, just to be sure, and that seems to work.


2. How do I identify which events I fired, and which events something else (e.g. the audio Unit GUI) fired? In the case of my app, I have sliders that need to respond to changes in the AU, and I want the AU to respond to changes in the slider, and I don't want the two to keep firing events back and forth unnecessarily. I see that AUEventListenerNotify has two parameters other than the event, but as far as I can tell, they don't get passed on anywhere, and I can't find docs on that. What am I missing?

Some searching through the mailing lists indicates events are not "fired", nor are events queued, but rather changes are flagged and listeners are updated through polling, so what I want is probably not possible. I still don't know what those two parameters are for, but many of the example code just uses NULL, and it's not documented anywhere, so I'll presume it's for use in the future.


	bjorn

-----------------------------
Bjorn Roche
XO Wave
Digital Audio Production and Post-Production Software
http://www.xowave.com
http://blog.bjornroche.com
http://myspace.com/xowave


_______________________________________________ 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

_______________________________________________ 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: AudioUnit Events
      • From: Bjorn Roche <email@hidden>
References: 
 >AudioUnit Events (From: Bjorn Roche <email@hidden>)
 >Re: AudioUnit Events (From: Bjorn Roche <email@hidden>)

  • Prev by Date: Re: AudioUnit Events
  • Next by Date: RFC 4695 and Network MIDI
  • Previous by thread: Re: AudioUnit Events
  • Next by thread: Re: AudioUnit Events
  • Index(es):
    • Date
    • Thread