• 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
Audio Unit Presets and undo
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Audio Unit Presets and undo


  • Subject: Audio Unit Presets and undo
  • From: Bjorn Roche <email@hidden>
  • Date: Thu, 7 Jun 2007 11:27:09 -0400

Hey all,

I am restructuring my code a bit to support native Audio Unit GUIs and running into trouble with Presets, parameter list changes and undo. Previously, when a parameter list or preset changed event was fired, I always knew it was in response to something I did, so I did not have to create a new edit object. Now that I'm adding support for native GUIs, those events may be fired in response to something I did, or in response to something the user did, like select a new preset or changed a parameter in the native UI. This means I must have some way to distinguish my events from UI triggered events so that I can create an edit for UI triggered events (otherwise undo won't work). Here's what I've tried:

when I restore a preset:

set flag
restore preset
unset flag

when responding to an event:

if flag is set
   return
else
   create an edit

but this doesn't work because, as far as I can tell, an extra event gets fired later, after the flag is unset, meaning I'm unable to distinguish between events that I initiated programatically and events that were initiated by the UI. So, am I doing something wrong to cause the extra event to fire? Is there some other strategy I can use? I'm aware that I can listen to gesture begin and gesture end events for parameters, but this is for properties.

Any hints appreciated,

	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
  • Follow-Ups:
    • Re: Audio Unit Presets and undo
      • From: William Stewart <email@hidden>
    • Re: Audio Unit Presets and undo
      • From: Bjorn Roche <email@hidden>
  • Prev by Date: Re: hosting Audio Units
  • Next by Date: change default system output device
  • Previous by thread: Re: AudioStreamBasicDescription for kAudioFormatMPEGLayer2
  • Next by thread: Re: Audio Unit Presets and undo
  • Index(es):
    • Date
    • Thread