Commit Graph

127 Commits

Author SHA1 Message Date
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