• 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: Recommend way for an Audio Unit to implement a background timer
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Recommend way for an Audio Unit to implement a background timer


  • Subject: Re: Recommend way for an Audio Unit to implement a background timer
  • From: Jens Alfke <email@hidden>
  • Date: Thu, 19 Feb 2009 16:15:12 -0800


On Feb 19, 2009, at 2:36 PM, Muon Software Ltd - Dave wrote:

What's the recommended carbon API for such a timer? the timer class I'm
using is based on VSTGUI3.5's cvstguitimer class, and I am having *no*
luck with CFRunLoopAddTimer, I simply cannot get it to work without
causing the strangest crashes (in seemingly unrelated code) in Logic 8
and AUlab.

CFRunLoopAddTimer would be the correct API, I'm pretty sure. If it's causing crashes, then either you're calling it wrong, or doing something during the callback that corrupts the state of the app.


Many of the CFRunLoop functions are not thread-safe (sort of unexpectedly, for an object so closely related to a thread.) If you're adding your timer from a random thread (ie. from an AU callback), that could be the problem.

—Jens

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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: Recommend way for an Audio Unit to implement a background timer
      • From: "Muon Software Ltd - Dave" <email@hidden>
References: 
 >Recommend way for an Audio Unit to implement a background timer (From: "Muon Software Ltd - Dave" <email@hidden>)

  • Prev by Date: Recommend way for an Audio Unit to implement a background timer
  • Next by Date: Re: Best way descrease/increase audio playback time?
  • Previous by thread: Recommend way for an Audio Unit to implement a background timer
  • Next by thread: RE: Recommend way for an Audio Unit to implement a background timer
  • Index(es):
    • Date
    • Thread