music player daemon (fork)
Go to file
Orivej Desh 635791d1cd cue: prepend pregap to the beginning of the track
.. 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.
2010-03-28 19:34:16 +02:00
doc Add support for MixRamp tags 2010-03-21 18:21:47 +01:00
m4 configure.ac: new libwrap autoconf test 2010-01-20 21:42:43 +01:00
scripts scripts/test.sh: added sndfile/modplug decoder test 2009-12-14 23:19:13 +01:00
src cue: prepend pregap to the beginning of the track 2010-03-28 19:34:16 +02:00
test Add support for MixRamp tags 2010-03-21 18:21:47 +01:00
.gitignore Makefile.am: added unit tests for the archive plugins 2009-12-31 15:50:59 +01:00
AUTHORS doc: deleted sticker specification proposal 2010-02-08 11:39:16 +01:00
autogen.sh autogen.sh: allow two minor digits in automake version 2009-11-14 01:15:26 +01:00
configure.ac mpd version 0.15.9 2010-03-21 17:25:18 -07:00
COPYING Update the text of the GPLv2, this fixes the address and a few other oddities. 2008-12-20 19:02:09 -08:00
INSTALL configure.ac: require GLib 2.12 2009-11-10 21:14:22 +01:00
Makefile.am Makefile.am: distribute pcm_pack.h 2010-03-28 19:31:02 +02:00
NEWS Merge release 0.15.9 from branch 'v0.15.x' 2010-03-28 19:31:47 +02:00
README Word wrap to 80 char lines 2008-12-20 19:27:02 -08:00
UPGRADING UPGRADING: added a 0.14 section 2008-11-05 21:27:30 +01:00
valgrind.suppressions valgrind.suppressions: added new suppressions 2010-01-04 20:42:49 +01:00

		       Music Player Daemon (MPD)
			http://www.musicpd.org

A daemon for playing music of various formats.  Music is played through the 
server's audio device.  The daemon stores info about all available music, 
and this info can be easily searched and retrieved.  Player control, info
retrieval, and playlist management can all be managed remotely.

For basic installation information see the INSTALL file.

MPD is released under the GNU General Public License version 2, which is
distributed in the COPYING file.

You should have received a copy of the GNU General Public License along with
this program.  If not, see <http://www.gnu.org/licenses/>.