Re: Recommend way for an Audio Unit to implement a background timer
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