Re: Is MusicSequenceSaveSMFData() totally broken or am I missing something?
Re: Is MusicSequenceSaveSMFData() totally broken or am I missing something?
- Subject: Re: Is MusicSequenceSaveSMFData() totally broken or am I missing something?
- From: William Stewart <email@hidden>
- Date: Fri, 14 Dec 2007 17:40:05 -0800
We had a report of this problem and we have a fix for it
Bill
On Dec 14, 2007, at 3:59 PM, Simone Tellini wrote:
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
_______________________________________________
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