• 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: Double-free in DLS unitialize
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Double-free in DLS unitialize


  • Subject: Re: Double-free in DLS unitialize
  • From: Michael Norris <email@hidden>
  • Date: Thu, 26 Jun 2003 22:48:38 +1200

I would still love to hear about any workaround if there is one.

I've coded up a workaround, which is simply to never bother disposing a MusicSequence.

Instead, I go the environmentally-friendly track: I recycle.

Instead of disposing a MusicSequence, then, I simply clear out the sequence's track using:
MusicTrackClear (track,0.0,kMusicTimeStamp_EndOfTrack);

Now I add my new sequence notes as per usual. It's much,much faster that way too...

Thanks to Bill for a post ages ago that suggested this route. I don't know how useful this will be to anyone else, however....

-mike
_______________________________________________
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.

  • Prev by Date: Questions about AudioFile API
  • Next by Date: Re: Revised: Audio Unit Guidelines 2.0
  • Previous by thread: Re: Double-free in DLS unitialize
  • Next by thread: WWDC 407 - Audio Overview: Mac OS X Audio Rocks!
  • Index(es):
    • Date
    • Thread