aboutsummaryrefslogtreecommitdiffstats
path: root/src/playlist/cue_playlist_plugin.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* cue_parser: new line based CUE sheet parserMax Kellermann2012-02-101-61/+28
| | | | To replace libcue, the unmaintained and crashy library.
* input_stream: non-blocking I/OMax Kellermann2011-09-161-1/+2
| | | | | | | | | Add GMutex, GCond attributes which will be used by callers to conditionally wait on the stream. Remove the (now-useless) plugin method buffer(), wait on GCond instead. Lock the input_stream before each method call. Do the same with the playlist plugins.
* copyright year 2011Max Kellermann2011-01-291-1/+1
|
* playlist/cue: last track ends at end of fileMax Kellermann2010-06-251-3/+2
| | | | | | | | libcue's track_get_length() returns 0 for the last track, because that information is not available in the CUE sheet. This makes MPD quit playing the last track immediately. If we set "song.end_ms=0", MPD will play the track until the end of the song file, which is what we want.
* cue: fix code styleOrivej Desh2010-04-011-5/+4
|
* cue: prepend pregap to the beginning of the trackOrivej Desh2010-03-281-2/+13
| | | | | | | | | | | | | | | | | | | | | | | .. rather then append to the end of the previous one Cuebreakpoints from the cuetools package has three modes of operation, and the default is to append pregap (INDEX 00) to the end of the previous track. This is the behavior most compliant to the existing cue files. Here is the patch which fixes the issue. I borrowed bits of implementation from cuebreakpoints. I assumed that the whole audio file must be covered by head-to-head going tracks, which is how hardware CD players probably work. In cue_tag I changed rounding from rounding up to rounding down because the thing in mpd which calculates actual track duration (and current position) rounds it down, and I didn't want to see in my playlist values different from whose in a now-playing progress bar. I've compared the resultant mpd behaviour with "mplayer -ss MM:SS.MS" where the time was supplied by cuebreakpoints and noticed that mplayer started each track a bit earlier then mpd, though this was the same before the patch.
* Update copyright notices.Avuton Olrich2009-12-311-1/+1
|
* playlist/cue: fill song.start_ms, .end_msMax Kellermann2009-12-271-0/+3
| | | | This patch adds practical usefulness to the CUE playlist plugin.
* playlist/cue: return the original song URIMax Kellermann2009-12-271-10/+1
| | | | The caller should be responsible for building the absolute URI.
* playlist: added CUE playlist pluginMax Kellermann2009-12-161-0/+137
This plugin is the groundwork for MPD's future generic CUE sheet support. That's not complete yet, e.g. there is no way for a playlist plugin to address an arbitrary position within a music file.