CUE Playlist support! [Archive] - Quintessential Forum

PDA

View Full Version : CUE Playlist support!


shaohao
02-15-2005, 04:21 AM
This one is for Paul:) I want to know whether it is possible to support CUE Sheet as a playlist format.
1. In a playlist plug-in, read a CUE sheet file and fill the TrackExtent for each track.
2. I think we should modify our input plug-in: In the function
int GetTrackExtents"(const char* medianame, TrackExtents *ext, int flags)
the play had better fill the "flags" to tell the plug-in the "TrackExtent *ext" of current track has been filled. Just skip calculate the track length then play it.
And the input plug-in should remember the ext->end, so we can stop playing when current track is finished.

That's All, then we can load a cue sheet file and break a whole album track into seperator tracks.

Paul
02-15-2005, 07:49 AM
I hear what you are saying and it's a good idea.

I'll set a flag that indicates that the TrackExtents have already been populated, but may need tailoring to the plugin's needs (such as unitsperseconds). The passed in *exts will contain the existing values.

Then all that is needed is to make sure the mp3 plugin can properly respond to the new start/stop times which won't be at the start/end of the track. This has really only been implemented for CDs, but there is no reason it won't work for other formats - once it's implemented.

shaohao
02-15-2005, 08:04 AM
This has really only been implemented for CDs, but there is no reason it won't work for other formats - once it's implemented.

I think maybe we can do it as your CDAudio plug-in does, just treat the CUE Sheet as a CD Disc.

Tropics
02-15-2005, 10:58 AM
kinda deja vu (http://www.quinnware.com/forum/showthread.php?t=3011)
although i didn't get an answer, but this post seems to answer that one as well.