CD audio playback question
CD audio playback question
- Subject: CD audio playback question
- From: Tab Julius <email@hidden>
- Date: Fri, 24 Oct 2003 13:57:26 -0400
I posted an equivalent question of this on the QT list, but it occurred to
me that I should post here, since I think it's deeper in the audio driver.
I'm using a QT movie to play CD audio (the tracks mount as files, and I
make a QT movie that encompasses the files so I can play their audio).
My problem is that any play request I make for a subrange always seems to
play 2 seconds more audio than it should, and ALSO plays 2 seconds PAST
where QT says it stops, and past where QT says it is.
My positions are correct because I can position the movie exactly where I
want, I can tell it to start playing, and it will play exactly from the
spot where I told it to start, and then eventually it will reach the end
point and QT will report that it has stopped playing, but audio will
continue for 2 more seconds.
The end point is, of course, where it is supposed to be, and on the next
play it starts correctly, but again, goes 2 seconds of audio past the end
point. Note that I mean that QT has stopped, but audio continues. I
suspect the audio cd driver, but... ?
Of course, the obvious workaround is to request an end point 2 seconds
shorter, but then it creates problems of coordination, because I'd have to
move the end point 2 seconds ahead for the next restart (to get it to where
it "ought" to be), it screws up the position reporting, and there's all
sorts of juggling to work around it by faking out the end point, not to
mention the problem of trying to play a segment 2 seconds or less in length.
I am mindful that most CDs have a 2-second gap in the beginning, and am
thinking that a bug in the Apple CD driver might be mistakenly compensating
for this by playing two extra seconds or something, but other than that...
I've tested my code enough against this that I'm pretty sure I'm playing by
the rules, particularly since QT says it finishes at the right time, but
the band plays on... for 2 seconds that is,
Anyone run into this, or have any ideas?
Thanks
- Tab
_______________________________________________
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.