Warren Dukes
c453f7dc52
remove debug code, and preivous commit fixes a segfault due to a doble free on an error trying to decode mp3's
...
git-svn-id: https://svn.musicpd.org/mpd/trunk@1314 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-06-03 02:58:41 +00:00
Warren Dukes
15c61f6eb0
don't stop on play command!
...
git-svn-id: https://svn.musicpd.org/mpd/trunk@1313 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-06-03 02:56:26 +00:00
Warren Dukes
b48ac2dfa3
add urlhandlers command, but prolly not needed
...
git-svn-id: https://svn.musicpd.org/mpd/trunk@1307 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-06-02 23:22:37 +00:00
Warren Dukes
efe8a04c70
validate url's before adding to playlist
...
git-svn-id: https://svn.musicpd.org/mpd/trunk@1289 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-06-02 01:26:15 +00:00
Warren Dukes
16da97e4c8
parsing mp3 id3v2 tags on the fly for streams
...
git-svn-id: https://svn.musicpd.org/mpd/trunk@1281 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-06-01 12:50:15 +00:00
Warren Dukes
fe0b751c82
ogg voribs comment parsing on the fly in the decoder
...
git-svn-id: https://svn.musicpd.org/mpd/trunk@1279 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-06-01 11:18:25 +00:00
Warren Dukes
aa2d56c81c
fix for bastard mp3 streams
...
git-svn-id: https://svn.musicpd.org/mpd/trunk@1268 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-06-01 01:07:02 +00:00
Warren Dukes
1a5b04e4e8
some stream metadata fixes
...
git-svn-id: https://svn.musicpd.org/mpd/trunk@1266 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-05-31 23:29:35 +00:00
Warren Dukes
000e053ce7
icynames are now copied to title of streams
...
git-svn-id: https://svn.musicpd.org/mpd/trunk@1258 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-05-31 11:42:46 +00:00
Warren Dukes
fd6aa25359
mp3 and ogg plugin stuff
...
git-svn-id: https://svn.musicpd.org/mpd/trunk@1245 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-05-31 01:21:17 +00:00
Warren Dukes
d80093fed6
fixed seek, its now blocking again
...
git-svn-id: https://svn.musicpd.org/mpd/trunk@1237 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-05-30 13:33:13 +00:00
Warren Dukes
90c75b1107
ingore mp3 CRC's for files and not streams
...
git-svn-id: https://svn.musicpd.org/mpd/trunk@1161 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-05-25 19:31:51 +00:00
Warren Dukes
0b05109416
more bug fixes
...
git-svn-id: https://svn.musicpd.org/mpd/trunk@1108 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-05-20 04:32:38 +00:00
Warren Dukes
4db5224b47
ogg stream playing! some non-blocking seek bug fixes
...
git-svn-id: https://svn.musicpd.org/mpd/trunk@1105 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-05-20 03:44:33 +00:00
Warren Dukes
b3f46fd0cc
clean up sleep times to be all 10ms
...
git-svn-id: https://svn.musicpd.org/mpd/trunk@1102 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-05-20 00:21:58 +00:00
Warren Dukes
05cbc476f5
get rid of seekError in DecoderControl
...
git-svn-id: https://svn.musicpd.org/mpd/trunk@1101 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-05-20 00:16:24 +00:00
Warren Dukes
70d4397366
some fixes for non-blocking seek :-)
...
git-svn-id: https://svn.musicpd.org/mpd/trunk@1100 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-05-20 00:08:22 +00:00
Warren Dukes
a81573ef05
non-blocking seeking, needs some testing! (this is not just for streams
...
but new code for files seeking as well)
git-svn-id: https://svn.musicpd.org/mpd/trunk@1099 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-05-19 23:48:34 +00:00
Warren Dukes
b7bca89110
forgot to mark in decoderControl when we are seekable!
...
git-svn-id: https://svn.musicpd.org/mpd/trunk@1093 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-05-19 17:09:23 +00:00
Warren Dukes
c1cd2668b2
bug fixy poo s/1/0/
...
and mark in decoderControl if we are seekable
git-svn-id: https://svn.musicpd.org/mpd/trunk@1078 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-05-19 03:23:31 +00:00
Warren Dukes
c180d2f95e
try to make seeking more non-blocking
...
git-svn-id: https://svn.musicpd.org/mpd/trunk@1076 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-05-19 02:14:20 +00:00
Warren Dukes
e9ace46388
nother little minor fix
...
git-svn-id: https://svn.musicpd.org/mpd/trunk@1071 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-05-18 20:00:42 +00:00
Warren Dukes
a19a79227c
streaming fixes and such, now it seems to work good, what an annoying bug
...
to find
git-svn-id: https://svn.musicpd.org/mpd/trunk@1066 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-05-18 19:32:05 +00:00
Warren Dukes
3a5a75cf87
fix a mem leak when unknow type in decodeStart()
...
git-svn-id: https://svn.musicpd.org/mpd/trunk@1063 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-05-18 13:19:30 +00:00
Warren Dukes
c51ad71efa
rework stuff so that we can use mime-type of streams to detect type of file
...
git-svn-id: https://svn.musicpd.org/mpd/trunk@1062 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-05-18 13:13:55 +00:00
Warren Dukes
2ec1c5ff3c
some more work on organizing code for resampling/audioFormat conversion
...
git-svn-id: https://svn.musicpd.org/mpd/trunk@968 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-05-10 12:35:18 +00:00
Warren Dukes
cd3180c701
stuff for configuring the audio output format (sampling rate, channels, bits)
...
git-svn-id: https://svn.musicpd.org/mpd/trunk@967 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-05-10 02:20:15 +00:00
Warren Dukes
3794126e56
new OutputBuffer abstraction stuff, implemented for mp3, now need to
...
implement in other decoders
git-svn-id: https://svn.musicpd.org/mpd/trunk@940 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-05-07 15:58:04 +00:00
Warren Dukes
2cfea8a8bf
ummm, undo last changes, they shouldn't need to be neccessary
...
git-svn-id: https://svn.musicpd.org/mpd/trunk@811 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-04-17 12:43:44 +00:00
Warren Dukes
4196886e93
close audio() and audioDriver() on decode process fork
...
git-svn-id: https://svn.musicpd.org/mpd/trunk@810 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-04-17 12:36:15 +00:00
Warren Dukes
7f29bb1a8d
log cycling and a few cleanups
...
git-svn-id: https://svn.musicpd.org/mpd/trunk@772 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-04-15 05:07:04 +00:00
Warren Dukes
549344d38a
add vim shiznit to end of all source files
...
git-svn-id: https://svn.musicpd.org/mpd/trunk@750 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-04-14 14:53:41 +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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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