• 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: How to correctly handle NSView::keyDown/Up in AudioUnit to avoid crashing Logic?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to correctly handle NSView::keyDown/Up in AudioUnit to avoid crashing Logic?


  • Subject: Re: How to correctly handle NSView::keyDown/Up in AudioUnit to avoid crashing Logic?
  • From: Kyle Sluder <email@hidden>
  • Date: Tue, 18 Mar 2014 07:43:28 -0700

On Mar 18, 2014, at 4:56 AM, Vojtěch Meluzín <email@hidden> wrote:
>
> Hi,
>
> my plugins are accepting keyboard events. When a key event is not handled,
> it is forwarded somewhere else like this:
>
> [super keyDown: pEvent]
>
> If that's not done, hosts don't get spacebar for start/stop playback for
> example. Unfortunately there's a problem with Logic - when you press
> 1/2/3/4... it switches between layouts, which unfortunately means destroy
> the plugin view. But the keyDown even is still processing, so Logic
> destroys the plugin while processing it's own message. And this usually
> leads to a crash, with no trace of the plugin in the stack...


Audio Units and their UI are supposed to be separated per the Core Audio spec.

Also, please do not cross-post.

--Kyle Sluder

 _______________________________________________
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


References: 
 >How to correctly handle NSView::keyDown/Up in AudioUnit to avoid crashing Logic? (From: Vojtěch Meluzín <email@hidden>)

  • Prev by Date: How to correctly handle NSView::keyDown/Up in AudioUnit to avoid crashing Logic?
  • Next by Date: Re: latency of MusicDeviceMIDIEvent and sampler device on iOS
  • Previous by thread: How to correctly handle NSView::keyDown/Up in AudioUnit to avoid crashing Logic?
  • Next by thread: Control panel for AudioServerPlugIn
  • Index(es):
    • Date
    • Thread