• 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: MusicEventIterator questions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: MusicEventIterator questions


  • Subject: Re: MusicEventIterator questions
  • From: Aran Mulholland <email@hidden>
  • Date: Tue, 19 Mar 2013 08:29:43 +1100

Does anyone have any thoughts on this? I'm in the process of writing a lock free data structure for storing midi information and am wondering if I might be reinventing the wheel.


On Thu, Feb 28, 2013 at 9:03 PM, Aran Mulholland <email@hidden> wrote:
I have a couple of questions regarding MusicEventIterators.

Can they be used in the render callback? It would seem like the answer to this question is no as I'm pretty sure that the call to NewMusicEventIterator will most probably allocate memory. 

Also in the doco it states:

"If you edit a music track after associating it with a music event iterator, you must discard iterator and create a new one."

If you were using MusicTracks to store note and controller information what is the situation with thread safety of the MusicEventIterator when used in a producer consumer type fashion. When using multiple threads I have the possibility that the MusicTrack will be edited while I am iterating. Will this throw an exception or will I just be iterating over stale information?


https://developer.apple.com/library/mac/documentation/AudioToolbox/Reference/MusicEventIterator_Reference/Reference/reference.html#//apple_ref/c/func/NewMusicEventIterator



Aran

 _______________________________________________
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: MusicEventIterator questions
      • From: Ross Bencina <email@hidden>
    • Re: MusicEventIterator questions
      • From: Paul Davis <email@hidden>
  • Prev by Date: Re: Loading GarageBand EXS instruments into iOS 6 app using AUSampler
  • Next by Date: Re: MusicEventIterator questions
  • Previous by thread: Re: Loading GarageBand EXS instruments into iOS 6 app using AUSampler
  • Next by thread: Re: MusicEventIterator questions
  • Index(es):
    • Date
    • Thread