Re: What sort of timer should I use for my sequencer?
Re: What sort of timer should I use for my sequencer?
- Subject: Re: What sort of timer should I use for my sequencer?
- From: Morgan Packard <email@hidden>
- Date: Sat, 29 Jan 2011 13:08:37 -0700
I set it to highest priority -- 1. It's working well now, but not 100%
perfectly. I'm pretty sure the last time I tested it, I got a few
glitches as the app was entering the background.
Here's my code relating to this threading stuff:
http://tinypaste.com/1ef85b
Happy to share the entirety of my remoteIO callback / buffer /
threading code if anybody asks. It ain't pretty, but it seems to be
getting closer to the right way to do things.
-m-
On Sat, Jan 29, 2011 at 3:27 AM, tahome izwah <email@hidden> wrote:
> So what priority did you set it to?
>
> --th
>
> 2011/1/29 Morgan Packard <email@hidden>:
>> I've managed to move my audio generation code out of the RemoteIO
>> callback thread. I'm now writing to a buffer on a separate thread,
>> using a while loop and [NSThread sleepForTimeInterval:] on a new
>> thread (NSThread detachNewThreadSelector). It took me a minute to
>> figure out that I need to set the priority on the thread. Seems that
>> the default priority is zero, so I was getting many more glitches than
>> I was with my objective-c selectors in the remote io callback thread!
>>
>> Anyway, things seem to be working well now. Thanks to all helped me
>> out with this.
>>
>> -Morgan
> _______________________________________________
> 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:
Album Moment Again Elsewhere available Oct 11.
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