• Orivej Desh's avatar
    cue: prepend pregap to the beginning of the track · 635791d1
    Orivej Desh authored
    .. 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.
    635791d1
Name
Last commit
Last update
doc Loading commit data...
m4 Loading commit data...
scripts Loading commit data...
src Loading commit data...
test Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
COPYING Loading commit data...
INSTALL Loading commit data...
Makefile.am Loading commit data...
NEWS Loading commit data...
README Loading commit data...
UPGRADING Loading commit data...
autogen.sh Loading commit data...
configure.ac Loading commit data...
valgrind.suppressions Loading commit data...