Re: best practices for sending data from UI to RemoteIO callback thread
Re: best practices for sending data from UI to RemoteIO callback thread
- Subject: Re: best practices for sending data from UI to RemoteIO callback thread
- From: Morgan Packard <email@hidden>
- Date: Sat, 26 Mar 2011 15:45:08 -0600
Great. Thanks. This had occurred to me as something that I should
maybe be doing, but had been told that it probably wasn't necessary.
Specifically, I'm triggering envelopes from my UI thread, which
involves resetting the "current value" member variable of the
envelope. I had been advised that a simple assignment of a float value
wasn't likely to result in threading problems. But perhaps this isn't
safe after all.
-Morgan
On Sat, Mar 26, 2011 at 3:35 PM, Paul Davis <email@hidden> wrote:
> On Sat, Mar 26, 2011 at 5:33 PM, Morgan Packard
> <email@hidden> wrote:
>> Thanks Paul,
>> So, would using a circular buffer / message queue technique like the
>> one described by wm schauweker be the generally preferred way of
>> sending commands from a UI to a real-time audio thread?
>
> its certainly what i use (though i don't use any coreaudio or os x
> specific apis in any of my code).
> _______________________________________________
> 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
>
--
================================
Web:
http://www.morganpackard.com
Music/Art:
Latest album: Moment Again Elsewhere
iOS app Thicket available on iTunes store.
================================
_______________________________________________
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