Commit Graph

15552 Commits

Author SHA1 Message Date
Warren Dukes f765c26275 fix a small booboo and add some debugging stuff
git-svn-id: https://svn.musicpd.org/mpd/trunk@708 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-04-13 02:38:09 +00:00
Warren Dukes 375e3ffed4 add my own utf8/ascii converters and utf8 validator
validate all mpd tags on import, if they are invalid, assume they are ascii
and convert to utf8

git-svn-id: https://svn.musicpd.org/mpd/trunk@707 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-04-13 02:20:46 +00:00
Warren Dukes 6bc445d00f volatile fun-ness
git-svn-id: https://svn.musicpd.org/mpd/trunk@705 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-04-12 18:51:16 +00:00
Warren Dukes 57742785b4 forgetting to increment playlist version after reading the db
git-svn-id: https://svn.musicpd.org/mpd/trunk@704 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-04-12 14:19:06 +00:00
Warren Dukes b68417a643 cleanup interface between interface.[ch] and command.[ch]
primarily move all buffer2array stuff from interface.c to command.c
and write a new command function explicitly for dealing with commandLists

git-svn-id: https://svn.musicpd.org/mpd/trunk@701 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-04-12 01:44:52 +00:00
Warren Dukes f74991b9fd minor little tweak on reporting update status
git-svn-id: https://svn.musicpd.org/mpd/trunk@700 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-04-12 00:41:53 +00:00
Warren Dukes bbf84374a5 more volatile stuff
git-svn-id: https://svn.musicpd.org/mpd/trunk@699 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-04-11 23:44:37 +00:00
Warren Dukes 26f72edc46 add volatile qualifiers to some shared mem buffer stuff, to enusre compiler
doesn't optimize out order sensitive stuff

git-svn-id: https://svn.musicpd.org/mpd/trunk@698 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-04-11 23:37:18 +00:00
Warren Dukes ae33b348af clean up signal handling using a polling method, from the genius that is mackstann
git-svn-id: https://svn.musicpd.org/mpd/trunk@697 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-04-11 23:07:43 +00:00
Warren Dukes 063affb047 we no longer need to block signals in tag.c, since update is now done
in a seperate process

git-svn-id: https://svn.musicpd.org/mpd/trunk@696 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-04-11 21:43:23 +00:00
Warren Dukes abc075c431 ok, fix some bug due to a child process dieing before the parent can
even assign pid, thus we need to block CHLD signal around fork();

git-svn-id: https://svn.musicpd.org/mpd/trunk@694 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-04-11 18:27:12 +00:00
Warren Dukes fc7a264e4d incremental updates and command-list/update kung fu
this needs some serious cleaning up and testing

git-svn-id: https://svn.musicpd.org/mpd/trunk@692 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-04-11 17:37:47 +00:00
Warren Dukes 87f53c94d7 more software volume tweeks
git-svn-id: https://svn.musicpd.org/mpd/trunk@684 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-04-11 13:29:55 +00:00
Warren Dukes 44756f5f10 adjust scaling of software volume
git-svn-id: https://svn.musicpd.org/mpd/trunk@681 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-04-11 11:48:04 +00:00
Warren Dukes 823a7900bd do while(wait3) for sighandler
git-svn-id: https://svn.musicpd.org/mpd/trunk@680 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-04-11 04:51:55 +00:00
Warren Dukes 7091235a68 add --disable-audio configure option
git-svn-id: https://svn.musicpd.org/mpd/trunk@679 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-04-11 04:49:27 +00:00
Warren Dukes 30d9589cb3 fix some snafoos
git-svn-id: https://svn.musicpd.org/mpd/trunk@678 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-04-11 04:15:14 +00:00
Warren Dukes 4844e05e65 don't stop playlist on finishPlaylist()[D
git-svn-id: https://svn.musicpd.org/mpd/trunk@677 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-04-11 04:05:12 +00:00
Warren Dukes c77011bf2a update job id stuff
git-svn-id: https://svn.musicpd.org/mpd/trunk@673 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-04-11 03:12:00 +00:00
Warren Dukes 4cfd77be95 updating_db in status and some ideas for the TODO that i've already forgotten
git-svn-id: https://svn.musicpd.org/mpd/trunk@669 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-04-11 02:34:26 +00:00
Warren Dukes 12ee016607 make "update" command background/non-blocking
git-svn-id: https://svn.musicpd.org/mpd/trunk@665 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-04-11 01:53:25 +00:00
Warren Dukes 171a7752a8 add --only-create-db option from msells
have SIGHUP cause rereading db file

git-svn-id: https://svn.musicpd.org/mpd/trunk@663 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-04-11 00:52:05 +00:00
Warren Dukes 996e8ce072 work in prep of using msells/sbh's non-blocking update method
Here, i've made readDirectoryDB detect when stuff is deleted, added and updated.
So after a update, and we call redDirectoryDB, we update the db instead of
just adding stuff w/o "updating" and "deleting" stuff as neccessary.

git-svn-id: https://svn.musicpd.org/mpd/trunk@659 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-04-10 17:56:01 +00:00
Warren Dukes 918dc2ff22 ideas on how to make readDirectoryInfo and readSongInfo deal with already
existing db stuff, and implement a new List function that will be very
useful: insertInListBeforeNode()

git-svn-id: https://svn.musicpd.org/mpd/trunk@657 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-04-10 02:55:27 +00:00
Warren Dukes 7d29f1772a don't report an error about not able to open device in audioError
also, update TODO with ideas about non-blocking update

git-svn-id: https://svn.musicpd.org/mpd/trunk@632 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-04-07 23:46:33 +00:00
Warren Dukes b1d12ba0f6 make default max playlist length be 16384. bumped up from 4096
git-svn-id: https://svn.musicpd.org/mpd/trunk@602 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-04-04 07:08:00 +00:00
Warren Dukes 73bcce335f when converting from bps -> kbps, divide by 1000, not 1024
git-svn-id: https://svn.musicpd.org/mpd/trunk@592 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-04-03 04:01:31 +00:00
Warren Dukes 785cdb0114 use EXIT_SUCCESS and EXIT_FAILURE
git-svn-id: https://svn.musicpd.org/mpd/trunk@591 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-04-02 23:34:16 +00:00
Warren Dukes b41f540579 for alsa mixer default to Master element, not the first element
git-svn-id: https://svn.musicpd.org/mpd/trunk@583 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-04-01 22:11:29 +00:00
Warren Dukes 8216f304c4 move sys/types.h include in utils.c, so it works for FreeBSD, from MDR
git-svn-id: https://svn.musicpd.org/mpd/trunk@581 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-04-01 13:43:10 +00:00
Warren Dukes 5dfc61d0bb need to include utils.h for my_usleep
git-svn-id: https://svn.musicpd.org/mpd/trunk@579 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-04-01 03:55:59 +00:00
Warren Dukes 3ab9841764 use our own portable version of usleep using select()
git-svn-id: https://svn.musicpd.org/mpd/trunk@578 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-04-01 03:48:51 +00:00
Warren Dukes e9efaeaca9 use 16-bit signed ints for storing positions in the ring buffer
git-svn-id: https://svn.musicpd.org/mpd/trunk@576 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-04-01 00:33:35 +00:00
Warren Dukes 795a1e930b lets cleanup some file type detection and not call stat() so much
git-svn-id: https://svn.musicpd.org/mpd/trunk@575 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-03-31 22:32:44 +00:00
Warren Dukes a67538178d fix for loading playlists on platforms where char is unsigned (like PPC)
git-svn-id: https://svn.musicpd.org/mpd/trunk@560 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-03-31 17:09:16 +00:00
Warren Dukes f641d046fa cleanup reading from interface, when argArrayLength returned by buffer2array
is 0, we weren't dealing with this well at all!

git-svn-id: https://svn.musicpd.org/mpd/trunk@559 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-03-31 16:15:09 +00:00
Warren Dukes 6266e3dcdf forgot a ;
git-svn-id: https://svn.musicpd.org/mpd/trunk@507 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-03-27 04:55:25 +00:00
Warren Dukes 53f728a0ae just to be carfile, make sure to null terminate when using strncpy
git-svn-id: https://svn.musicpd.org/mpd/trunk@506 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-03-27 02:52:59 +00:00
Warren Dukes 12d19cccd2 close audio device on pause, after we say we have paused, makes pause seem
more responsive

git-svn-id: https://svn.musicpd.org/mpd/trunk@504 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-03-26 22:25:01 +00:00
Warren Dukes f809e1eccd put back
git-svn-id: https://svn.musicpd.org/mpd/trunk@488 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-03-25 20:03:07 +00:00
Warren Dukes 9409ce5a3b bsd seems to want sys/time.h
git-svn-id: https://svn.musicpd.org/mpd/trunk@487 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-03-25 20:02:47 +00:00
Warren Dukes 4965fa019e minor fix ups for types
git-svn-id: https://svn.musicpd.org/mpd/trunk@460 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-03-25 03:06:56 +00:00
Warren Dukes 1de1bfe314 fix and detect differences between faad2 1.1 and 2.0
git-svn-id: https://svn.musicpd.org/mpd/trunk@459 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-03-25 01:08:13 +00:00
Warren Dukes 0977ab5b4e calculate song length more accurately
git-svn-id: https://svn.musicpd.org/mpd/trunk@444 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-03-24 02:26:57 +00:00
Warren Dukes 7479bfacbb bitRate support for audiofile
git-svn-id: https://svn.musicpd.org/mpd/trunk@443 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-03-24 02:23:40 +00:00
Warren Dukes 9b38a1e63e tweek seeking for mp3's
git-svn-id: https://svn.musicpd.org/mpd/trunk@442 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-03-24 02:09:50 +00:00
Warren Dukes 3e46c6aaad strcasecmp for mixer_control
git-svn-id: https://svn.musicpd.org/mpd/trunk@436 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-03-24 00:53:12 +00:00
Warren Dukes 9c9ce227f5 alsa volume fixes
git-svn-id: https://svn.musicpd.org/mpd/trunk@421 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-03-23 21:18:19 +00:00
Warren Dukes d6a37ba73e volume fixes
git-svn-id: https://svn.musicpd.org/mpd/trunk@420 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-03-23 20:34:12 +00:00
Warren Dukes fc84fa54fc fix some gcc-2.95 errors
git-svn-id: https://svn.musicpd.org/mpd/trunk@414 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-03-23 03:02:49 +00:00
Warren Dukes 7874a003e9 fix bug where accidently setting default mixer to NULL instead of SOFTWARE
git-svn-id: https://svn.musicpd.org/mpd/trunk@413 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-03-23 02:46:18 +00:00
Warren Dukes 0783a2bde1 fix a bug, due to not resetting decodeType in playerSeek when the file to
seek isn't the same as the current playing file

git-svn-id: https://svn.musicpd.org/mpd/trunk@409 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-03-23 01:12:30 +00:00
Warren Dukes 4b4438853c oops
git-svn-id: https://svn.musicpd.org/mpd/trunk@408 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-03-22 23:38:09 +00:00
Warren Dukes 395281c7a0 fix error reporting for mp4 files
git-svn-id: https://svn.musicpd.org/mpd/trunk@370 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-03-22 18:44:15 +00:00
Warren Dukes 80e0fec683 a few aac/mp4 minor fixes
don't set audioFormat till decode first frame

git-svn-id: https://svn.musicpd.org/mpd/trunk@359 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-03-22 05:08:14 +00:00
Warren Dukes 097c8720ef print error messages for faad2
git-svn-id: https://svn.musicpd.org/mpd/trunk@358 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-03-22 04:24:16 +00:00
Warren Dukes da969faed1 implement acc-raw decoding, no seeking for aac
git-svn-id: https://svn.musicpd.org/mpd/trunk@357 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-03-22 04:20:19 +00:00
Warren Dukes 145f0b62d2 aac decoding!
need to work on seeking for AAC
also, don't reset cb->begin on seek to 0,
instead just set cb->end=cb->begin, works much better for
disabling seeking (like ADIF AAC's)

git-svn-id: https://svn.musicpd.org/mpd/trunk@356 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-03-22 02:44:22 +00:00
Warren Dukes 4c1eb9225d add aac_decode.[ch] and start working on it
also, if locale is C or POSIX, set fs charset to iso-8859-1

git-svn-id: https://svn.musicpd.org/mpd/trunk@347 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-03-21 21:32:23 +00:00
Warren Dukes b72f591641 parse length from Aac files and ID3 tags
git-svn-id: https://svn.musicpd.org/mpd/trunk@346 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-03-21 18:12:37 +00:00
Warren Dukes 1bb75913c3 begin parsing work on AAC info parsing
git-svn-id: https://svn.musicpd.org/mpd/trunk@345 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-03-21 16:34:06 +00:00
Warren Dukes 590323e341 more faad autoconf checks
git-svn-id: https://svn.musicpd.org/mpd/trunk@342 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-03-21 13:47:45 +00:00
Warren Dukes 89d096fbef some simple compilation fix
git-svn-id: https://svn.musicpd.org/mpd/trunk@341 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-03-21 12:46:13 +00:00
Warren Dukes 09880de539 fix for iconv
git-svn-id: https://svn.musicpd.org/mpd/trunk@339 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-03-21 06:17:32 +00:00
Warren Dukes 445d807b9c streamline ls.c code
remove dontUpSampleSBR, not in faad2 rc3

git-svn-id: https://svn.musicpd.org/mpd/trunk@330 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-03-21 03:45:58 +00:00
Warren Dukes 6436b0ac8a close audio device on pause
git-svn-id: https://svn.musicpd.org/mpd/trunk@329 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-03-20 19:47:05 +00:00
Warren Dukes 115b0d06cd i don't think we need to swap byte order for flac either
git-svn-id: https://svn.musicpd.org/mpd/trunk@328 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-03-20 16:27:43 +00:00
Warren Dukes 00e6078323 illiminated all endianness code
git-svn-id: https://svn.musicpd.org/mpd/trunk@327 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-03-20 16:18:47 +00:00
Warren Dukes 3130ea01c5 git-svn-id: https://svn.musicpd.org/mpd/trunk@326 09075e82-0dd4-0310-85a5-a0d7c8717e4f 2004-03-20 14:44:39 +00:00
Warren Dukes cf2986c68f average bitrate for mp4's
git-svn-id: https://svn.musicpd.org/mpd/trunk@325 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-03-20 14:27:35 +00:00
Warren Dukes ffd0ccfc3b git-svn-id: https://svn.musicpd.org/mpd/trunk@319 09075e82-0dd4-0310-85a5-a0d7c8717e4f 2004-03-20 01:34:25 +00:00
Warren Dukes 61b9e2fc47 use offset, and a bunch of debugger crud
git-svn-id: https://svn.musicpd.org/mpd/trunk@318 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-03-20 00:54:20 +00:00
Warren Dukes 6100ca86a3 use LC_CTYPE instead of LC_ALL
git-svn-id: https://svn.musicpd.org/mpd/trunk@302 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-03-19 16:05:09 +00:00
Warren Dukes 278985b2fd more fun with LOCALE and LANGINFO
git-svn-id: https://svn.musicpd.org/mpd/trunk@299 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-03-19 15:56:31 +00:00
Warren Dukes e40c676dba fix booboo
git-svn-id: https://svn.musicpd.org/mpd/trunk@289 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-03-19 04:40:50 +00:00
Warren Dukes cbfcd23d83 fix bug that prevented crosffading/gapless from working for mp4
git-svn-id: https://svn.musicpd.org/mpd/trunk@282 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-03-19 01:24:20 +00:00
Warren Dukes b87cc3c164 seek support for mp4/aac
git-svn-id: https://svn.musicpd.org/mpd/trunk@281 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-03-18 22:20:26 +00:00
Warren Dukes 692dd6bc29 mp4 cleanups
git-svn-id: https://svn.musicpd.org/mpd/trunk@280 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-03-18 19:43:07 +00:00
Warren Dukes be753fb53d make all sleeps at least 1 ms
git-svn-id: https://svn.musicpd.org/mpd/trunk@279 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-03-18 18:35:23 +00:00
Warren Dukes e0e09d0a94 we don't need these!
git-svn-id: https://svn.musicpd.org/mpd/trunk@277 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-03-18 16:33:10 +00:00
Warren Dukes ad94c1dcf3 mp4/aac cleanups
git-svn-id: https://svn.musicpd.org/mpd/trunk@276 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-03-18 16:31:29 +00:00
Warren Dukes f409d85bbd initial mp4/aac decoder, hasn't been tested at all yet, just compiles
git-svn-id: https://svn.musicpd.org/mpd/trunk@275 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-03-18 13:47:41 +00:00
Warren Dukes deb06d9c6f weee
git-svn-id: https://svn.musicpd.org/mpd/trunk@274 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-03-18 04:39:26 +00:00
Warren Dukes 91450723b2 bunch of autotool cleanups
git-svn-id: https://svn.musicpd.org/mpd/trunk@271 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-03-18 03:29:25 +00:00
Warren Dukes 02346f2f1a metadata parsing for mp4 files is working, next need to work on AAC
git-svn-id: https://svn.musicpd.org/mpd/trunk@270 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-03-17 22:43:58 +00:00
Warren Dukes 290102fddd make playlist restart from current position in song when using state file
git-svn-id: https://svn.musicpd.org/mpd/trunk@269 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-03-17 20:58:09 +00:00
Warren Dukes 9a7636f5bc have AAC and MP4 types
git-svn-id: https://svn.musicpd.org/mpd/trunk@267 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-03-17 17:30:50 +00:00
Warren Dukes b2b700a87d remove unnecessary junk
git-svn-id: https://svn.musicpd.org/mpd/trunk@266 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-03-17 17:20:33 +00:00
Warren Dukes bf769906f3 import mp4ff, since its not installed correctly by faad2
git-svn-id: https://svn.musicpd.org/mpd/trunk@265 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-03-17 17:19:52 +00:00
Warren Dukes f114fbd437 fix a few snafoo's in configure.ac
Add initial stuff for AAC support, now we just need to write the decoder

git-svn-id: https://svn.musicpd.org/mpd/trunk@264 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-03-17 03:10:17 +00:00
Warren Dukes a3fded301e autogen.sh updates
git-svn-id: https://svn.musicpd.org/mpd/trunk@255 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-03-12 15:26:41 +00:00
Warren Dukes 1157b5d332 move time back into MpdTag
git-svn-id: https://svn.musicpd.org/mpd/trunk@250 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-03-11 00:16:49 +00:00
Warren Dukes 31d44ea775 remove some no longer used functions
git-svn-id: https://svn.musicpd.org/mpd/trunk@242 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-03-10 10:08:10 +00:00
Warren Dukes 997541e1eb increment playlist version on update, so clients know to update
git-svn-id: https://svn.musicpd.org/mpd/trunk@240 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-03-10 10:00:47 +00:00
Warren Dukes 68dc3517a6 move adding and removeing from tables from directory.c to song.c
git-svn-id: https://svn.musicpd.org/mpd/trunk@239 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-03-10 09:55:54 +00:00
Warren Dukes e5e45242e0 update when mtimes are not the same
git-svn-id: https://svn.musicpd.org/mpd/trunk@238 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-03-10 03:14:31 +00:00
Warren Dukes c69b615f2b fix it so that mpd will work if mtime is 0 (for those strange folk)
git-svn-id: https://svn.musicpd.org/mpd/trunk@237 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-03-10 02:58:27 +00:00
Warren Dukes ec234e9855 move time from tag info to song info.
also, if we can't get the time, then don't add the song to the db!

git-svn-id: https://svn.musicpd.org/mpd/trunk@236 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-03-10 02:38:31 +00:00
Warren Dukes 1459ee22fe clean up logging for creating and updating the db
git-svn-id: https://svn.musicpd.org/mpd/trunk@235 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-03-09 23:07:26 +00:00
Warren Dukes efa083c887 when stripping return chars, just replace them with spaces
git-svn-id: https://svn.musicpd.org/mpd/trunk@234 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-03-09 22:50:52 +00:00
Warren Dukes e129640141 remove empty directories
git-svn-id: https://svn.musicpd.org/mpd/trunk@233 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-03-09 22:48:35 +00:00
Warren Dukes 8d95265cc8 use BIGENDIAN for ov_read, instead of changing endianness unneccessarily
git-svn-id: https://svn.musicpd.org/mpd/trunk@232 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-03-09 21:42:08 +00:00
Warren Dukes 197c046b02 exit on any unknown line in the db
git-svn-id: https://svn.musicpd.org/mpd/trunk@231 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-03-09 20:59:10 +00:00
Warren Dukes 13a38d3580 lets exit on unknown line in songinfo db
git-svn-id: https://svn.musicpd.org/mpd/trunk@230 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-03-09 20:58:31 +00:00
Warren Dukes 6599e05a25 strip return characters that are in the id3 tags
git-svn-id: https://svn.musicpd.org/mpd/trunk@229 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-03-09 20:55:51 +00:00
Warren Dukes ff1659ed4c fix a compiler error, bug for bigendian
git-svn-id: https://svn.musicpd.org/mpd/trunk@228 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-03-09 16:55:00 +00:00
Warren Dukes 6eb6985ac1 make some usleeps longer, just to try to stave off busy waiting
git-svn-id: https://svn.musicpd.org/mpd/trunk@219 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-03-06 23:25:32 +00:00
Warren Dukes ac8884d3a5 git-svn-id: https://svn.musicpd.org/mpd/trunk@213 09075e82-0dd4-0310-85a5-a0d7c8717e4f 2004-03-06 15:59:22 +00:00
Warren Dukes 936d53bc61 make a set of nested if statements less ambigous
git-svn-id: https://svn.musicpd.org/mpd/trunk@209 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-03-05 19:05:23 +00:00
Warren Dukes 7dd33a490b make chunk_size 1020, so its divisible for 8,16,24, and 32-bit audio
git-svn-id: https://svn.musicpd.org/mpd/trunk@207 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-03-05 16:06:13 +00:00
Warren Dukes 09efb14dbb fix crossfading issue with ogg
problem was, ov_read doesn't always fill to CHUNK_SIZE
and we were moving chunk on every ov_read, instead now we only
dump the buffer when its full

git-svn-id: https://svn.musicpd.org/mpd/trunk@206 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-03-05 16:02:47 +00:00
Warren Dukes 8b214b7c8c fix a minor issue!
git-svn-id: https://svn.musicpd.org/mpd/trunk@205 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-03-05 14:39:51 +00:00
Warren Dukes a8d3895e32 fix a booboo
git-svn-id: https://svn.musicpd.org/mpd/trunk@204 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-03-05 13:25:39 +00:00
Warren Dukes 1cf07bfa40 skip over all bad frames
git-svn-id: https://svn.musicpd.org/mpd/trunk@203 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-03-05 13:06:31 +00:00
Warren Dukes 170824db8c put it back the way it was
git-svn-id: https://svn.musicpd.org/mpd/trunk@202 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-03-05 13:01:58 +00:00
Warren Dukes cc23d2e7e9 mute all frames that are "SKIP"'d
git-svn-id: https://svn.musicpd.org/mpd/trunk@201 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-03-05 12:59:29 +00:00
Warren Dukes db82d2fc8c lets SKIP all recorable stream errors
git-svn-id: https://svn.musicpd.org/mpd/trunk@200 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-03-05 12:48:57 +00:00
Warren Dukes 4e4faf6174 see if we can skip past tags
git-svn-id: https://svn.musicpd.org/mpd/trunk@199 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-03-05 01:29:08 +00:00
Warren Dukes 124854ff51 obotomize mixing a bit
git-svn-id: https://svn.musicpd.org/mpd/trunk@198 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-03-05 00:19:02 +00:00
Warren Dukes 92692c0249 cleanup a few errors when compiling libmad and libid3tag
git-svn-id: https://svn.musicpd.org/mpd/trunk@197 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-03-04 23:29:20 +00:00
Warren Dukes e2d2baece9 update to 0.15.1 of libmad and libid3tag
git-svn-id: https://svn.musicpd.org/mpd/trunk@196 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-03-04 23:19:57 +00:00
Warren Dukes 7be523c015 clean up a bit
git-svn-id: https://svn.musicpd.org/mpd/trunk@195 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-03-04 20:50:32 +00:00
Warren Dukes 4893e94dae git-svn-id: https://svn.musicpd.org/mpd/trunk@194 09075e82-0dd4-0310-85a5-a0d7c8717e4f 2004-03-04 20:45:49 +00:00
Warren Dukes ac2be01374 fix gcc-2.95 compilation errors
git-svn-id: https://svn.musicpd.org/mpd/trunk@172 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-03-03 00:01:43 +00:00
Warren Dukes 4aec92fd6e rewrite error message for wrong number of config args
git-svn-id: https://svn.musicpd.org/mpd/trunk@171 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-03-02 20:55:00 +00:00
Warren Dukes afbae2e6a4 don't use automake-1.8
git-svn-id: https://svn.musicpd.org/mpd/trunk@154 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-03-02 13:12:20 +00:00
Warren Dukes ce2c6845a2 memset erroredFile to 0
git-svn-id: https://svn.musicpd.org/mpd/trunk@127 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-03-01 03:35:52 +00:00
Warren Dukes e742f2be2c fix a typecast
git-svn-id: https://svn.musicpd.org/mpd/trunk@126 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-03-01 03:34:01 +00:00
Warren Dukes f515692aa9 fix a bug where getting OS Mixer volume may fail, and we were closing
the fd, but didn't mark anything indicated the fd was close, so chaos
ensued.  Here, we just remove the close() statement and assume it was
just a fluke!!

git-svn-id: https://svn.musicpd.org/mpd/trunk@125 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-02-29 08:37:21 +00:00
Warren Dukes 41b63bbe47 fix a stupid bug where i was storing the decode_pid directorly from fork()
call, and since decode_pid is shared now, it may get assigned zero after
the parent assigns it the true pid, not good!!

git-svn-id: https://svn.musicpd.org/mpd/trunk@124 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-02-29 08:10:52 +00:00
Warren Dukes cfd0e18dc4 fix some errors with short and long
git-svn-id: https://svn.musicpd.org/mpd/trunk@117 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-02-28 14:38:55 +00:00
Warren Dukes 821355361c audio cleanups
git-svn-id: https://svn.musicpd.org/mpd/trunk@109 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-02-27 23:13:26 +00:00
Warren Dukes 5622edbc98 cleanup audio code some
git-svn-id: https://svn.musicpd.org/mpd/trunk@108 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-02-27 23:05:56 +00:00
Warren Dukes 8b19235b61 put decode_pid in shared mem, so if player process dies, the master
can still kill the decode process.

git-svn-id: https://svn.musicpd.org/mpd/trunk@107 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-02-27 22:25:06 +00:00
Warren Dukes 79effd62e1 display db_playtime in stats
git-svn-id: https://svn.musicpd.org/mpd/trunk@98 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-02-27 15:39:19 +00:00
Warren Dukes a78c5e4aea crossfade should always be displayed in status
git-svn-id: https://svn.musicpd.org/mpd/trunk@77 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-02-27 01:38:18 +00:00
Warren Dukes 9b1c550597 add xfade and audio to status, remove crossfade no args options
git-svn-id: https://svn.musicpd.org/mpd/trunk@75 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-02-27 01:35:23 +00:00
Warren Dukes 1adca2abd2 add bitrate reporting to flac
git-svn-id: https://svn.musicpd.org/mpd/trunk@63 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-02-26 03:21:24 +00:00
Warren Dukes 9d4bc4efea finally found the segfault, it occurs with random and repeat on,
in queueNextSong() was doing randomizeOrder(0,playlist.length)
instead of playlist.length-1

git-svn-id: https://svn.musicpd.org/mpd/trunk@61 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-02-25 22:00:21 +00:00
Warren Dukes 8edc416344 some more cleanups
git-svn-id: https://svn.musicpd.org/mpd/trunk@60 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-02-25 21:10:56 +00:00
Warren Dukes e1c839cd56 cleanup logging, need to be careful with SECURE and DEBUG
git-svn-id: https://svn.musicpd.org/mpd/trunk@58 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-02-25 19:13:10 +00:00
Warren Dukes 483d8873bd few cleanups
git-svn-id: https://svn.musicpd.org/mpd/trunk@57 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-02-25 18:56:12 +00:00
Warren Dukes e4f265b2fc be more careful with string manipulations, use strncpy as much as possible
git-svn-id: https://svn.musicpd.org/mpd/trunk@56 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-02-25 18:46:41 +00:00
Warren Dukes ca3068d411 a few more cleanups, use memcpy instead of strncpy
git-svn-id: https://svn.musicpd.org/mpd/trunk@55 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-02-25 18:42:47 +00:00
Warren Dukes 1e9b166574 some cleanups for utf8 in playerSeek and using strncpy for copying filenames
git-svn-id: https://svn.musicpd.org/mpd/trunk@54 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-02-25 18:29:39 +00:00
Warren Dukes 46c66a2a3e a few cleanups
git-svn-id: https://svn.musicpd.org/mpd/trunk@53 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-02-25 17:53:48 +00:00
Warren Dukes c10807c276 use "$@" instead of "$*"
git-svn-id: https://svn.musicpd.org/mpd/trunk@48 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-02-25 04:53:30 +00:00
Warren Dukes 8e08f9b078 oops, forgot to call utf8ToFsCharset when opening flac files for Metadata
git-svn-id: https://svn.musicpd.org/mpd/trunk@46 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-02-25 01:31:52 +00:00
Warren Dukes aaf4282654 have pause take an optional arugment
git-svn-id: https://svn.musicpd.org/mpd/trunk@43 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-02-25 00:08:48 +00:00
Warren Dukes 068d307a71 make ~ work for paths
git-svn-id: https://svn.musicpd.org/mpd/trunk@37 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-02-24 21:20:16 +00:00
Warren Dukes 71a48f07bc add copyright notices to files
git-svn-id: https://svn.musicpd.org/mpd/trunk@34 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-02-24 17:06:14 +00:00
Warren Dukes d35747a40c import from SF CVS
git-svn-id: https://svn.musicpd.org/mpd/trunk@1 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-02-23 23:41:20 +00:00