Re: Scheduling Midi data using 'MidiReceived'
Re: Scheduling Midi data using 'MidiReceived'
- Subject: Re: Scheduling Midi data using 'MidiReceived'
- From: Chris Cianflone <email@hidden>
- Date: Thu, 9 Mar 2006 21:17:02 -0600
Hi all,
Anyone know if this has been addressed yet? I am pretty sure it wasn't addressed in Panther but I haven't checked Tiger yet.
Also, if we have to do our own scheduling, what is the best way to do it? It seems that the Time Manager (from the old classic Mac OS days) is not giving us very accurate timing anymore under OS X. Is this related to the following from Technote 2028:
▪ Carbon "interrupt" routines are simulated using preemptive threads
I have been doing a lot of research in this area and it looks like CAPThread (using the THREAD_TIME_CONSTRAINT_POLICY parts) might be useful here. Just looking for some direction. Unfortunately, I am pretty new to pthreads, etc.
Thanks,
Chris
Chris Cianflone
MakeMusic, Inc.
www.makemusic.com
On May 17, 2004, at 6:14 PM, Doug Wyatt wrote:
Yes, that's the way the current implementation works -- there is no
schedule-ahead for sources. Unfortunately you'll have to do your own
scheduling.
I have a bug to address this ...
Best,
Doug
On May 15, 2004, at 12:10, Mark Gilbert wrote:
> Folks.
>
> I am scheduling time sensitive data with CoreMidi. I prepare my data,
> then schedule it with 'MidiSend' with a defined timestamp for the time
> at which I want it actually sent.
>
> This works fine with MidiSend, going to real Midi ports, or IAC buses.
>
> However, when I try to do the same thing with a Virtual midi source
> (created by my app), using 'MidiReceived', the timestamp is ignored,
> and the packet gets sent immediately, instead of waiting for the
> timestamp.
>
> I treat my 'virtual source' in exactly the same way as a real output
> endpoint. Is this a bug, or do I need to do things differently with
> MidiReceived. The port is working perfectly in all aspects apart
> from this forward scheduling issue.
>
> Any ideas ?
>
> Cheers
>
> Mark Gilbert.
> --
> email@hidden
> Tel: ჸ 208 340 5677
> fax: ჸ 870 055 7790
> http://www.gallery.co.uk
> http://www.mtools.info
> http://www.metaflow.info
> http://www.virtualvtr.com
> http://www.libraryloader.com
> New Product !!!
> http://www.pictureready.com
> _______________________________________________
> coreaudio-api mailing list | email@hidden
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/coreaudio-api
> Do not post admin requests to the list. They will be ignored.
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.
_______________________________________________
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