• 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
Is MusicSequenceSaveSMFData() totally broken or am I missing something?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Is MusicSequenceSaveSMFData() totally broken or am I missing something?


  • Subject: Is MusicSequenceSaveSMFData() totally broken or am I missing something?
  • From: Simone Tellini <email@hidden>
  • Date: Sat, 15 Dec 2007 00:59:47 +0100

Hello,

I've got a problem with MusicSequenceSaveSMFData(), which I do believe it's due to a CoreAudio bug, but I'd like to receive some feedback from someone else before setting it on stone ;-)

Problem is, my code manually creates a MusicSequence which works fine when played through MusicPlayer, but becomes a random series of bytes when MusicSequenceSaveSMFData() converts it to an NSData object. The code I'm using worked fine on Mac OS X < 10.4.9 on PPC machines, but it failed on Intel machines because MusicSequenceSaveSMFData() wrote MIDI headers with the wrong endiannes. That problem was fixed in 10.4.9 Intel and my code was happy to run on it.

Currently, I've tried the same code on Leopard and now it produces only trash that doesn't even resemble a MIDI file (or maybe, one without any chunk header). Also, I've just received a report from a customer who reported he had problems on 10.4.9 on a PPC machine.

I've created a tiny sample project which is available at http://files.tellini.info/MIDIPlayerTest.tar.bz2 - I'd be grateful if someone were so kind to give a look at it and tell me if he spots any obvious bug in my code.

Does anyone have a code that manages to do the same (ie. create a MusicSequence and write it to a MIDI file) correctly on Leopard?

By the way, I did file a bug (radar 5593510 - in "Open" status) about the problem early in November.

--
Simone Tellini
http://tellini.info



_______________________________________________
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: Is MusicSequenceSaveSMFData() totally broken or am I missing something?
      • From: William Stewart <email@hidden>
  • Prev by Date: Re: timestamp/sample offset
  • Next by Date: Re: Is MusicSequenceSaveSMFData() totally broken or am I missing something?
  • Previous by thread: Re: timestamp/sample offset
  • Next by thread: Re: Is MusicSequenceSaveSMFData() totally broken or am I missing something?
  • Index(es):
    • Date
    • Thread