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

MusicEventIterator questions


  • Subject: MusicEventIterator questions
  • From: Aran Mulholland <email@hidden>
  • Date: Thu, 28 Feb 2013 21:03:44 +1100

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

  • Prev by Date: Re: Where should CAStreamBasicDescription be instantiated?
  • Next by Date: Re: Midi and Audio timebases in an AUGraph
  • Previous by thread: Re: Where should CAStreamBasicDescription be instantiated?
  • Index(es):
    • Date
    • Thread