Re: MusicPlayerIsPlaying() : is it done yet?
Re: MusicPlayerIsPlaying() : is it done yet?
- Subject: Re: MusicPlayerIsPlaying() : is it done yet?
- From: Scott Ruda <email@hidden>
- Date: Fri, 25 Jul 2003 18:18:01 -0700
I wrote in a previous post:
When iterating over the MusicTrack and you get the last event, which
should always be an EndOfTrack meta event, iter.getEventTime()
incorrectly reports a time of 0 for that event.
I see now that I was somewhat incorrect here. The timestamps are
reported correctly in the reverse iteration. I had tracks with nothing
in them but other meta events at time 0 in my test file and I
incorrectly assumed they were EndOfTrack meta events, which I was
expecting to see. Sorry for that misleading info. But...
It turns out that EOT meta events are not reported by the iterator at
all. Neither are kMusicEventType_Last events, which I'm not sure what
they are supposed to be for or even ever exist (I've never seen one).
Which means my primary assertion is still true - you can't really find
the true length of a track by looking at the timestamps of the events
returned by the current implementation of the iterator. It seems there
would need to be some kind of marker at the true end of the track
independent of notes and controllers and such to account for any
potential silent beats at the end of a track. Hopefully a solution to
this issue shows up at some point in a future release.
_______________________________________________
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.