Commit Graph

51 Commits

Author SHA1 Message Date
dogcow
0dbd865aab arg might be improperly initialized; fix that.
(also, since we check arg == NULL, s/arg = 0/arg = NULL/.)
2006-12-27 18:47:20 +00:00
alc
c6ea7a850f CID-4199: move the test (line != NULL) one line up to check the
return value of strdup()

ok christos@
2006-12-27 17:55:05 +00:00
chuck
92a710ed6c take into account the 150 frame start offset time when computing the
duration of a track.  call lba2msf like this:
	lba2msf(len - 150, &m, &s, &f);
                    ^^^^^
from rev 1.41 of FreeBSD usr.sbin/cdcontrol/cdcontrol.c, Dmitry Afanasiev.

XXX: note that this is a mis-use of lba2msf() because 'len' is the length
     of the track in frames, not a logical block address (lba).
2006-12-14 18:15:16 +00:00
ad
119899c354 Remove authors section, and update history where appropriate. 2006-11-13 16:33:56 +00:00
christos
ccf5505f5c remove bogus assertion. 2006-10-22 16:13:23 +00:00
wiz
8f4dd609aa English improvements. New sentence, new line. 2006-09-23 11:21:35 +00:00
xtraeme
49627385cb Apply patch from PR bin/34545 sent by Sergey Svishchev to add support
for digital transfer mode, not enabled by default.

To use it: $ cdplay -a /dev/audio (otherwise /dev/sound will be used)
and type "digital" on the interactive mode.

Thank you very much Sergey, it's very useful.

Reviewed and ok by christos@.
2006-09-22 18:20:53 +00:00
wiz
592cef634d New sentence, new line. Bump date for previous. 2006-01-12 21:00:58 +00:00
garbled
f9abebf063 Applied patch from PR bin/14505 Tested on i386-current. Fixes inability of
cdplay to properly play a cd immediately following an eject command in
interactive mode.  Patch supplied by Sergey Svishchev.
2006-01-12 18:15:59 +00:00
garbled
fd2134d98b Add repeat mode to cdplay(1) per PR bin/13970
Applied the second patch in the PR, with minor tweaking, and adjusted
manpage for change.
2006-01-02 21:29:53 +00:00
lukem
658ed3362c appease gcc -Wuninitialized 2005-06-02 01:35:57 +00:00
xtraeme
b363f90b86 WARNS=3 2005-01-12 16:42:45 +00:00
dsl
3145a29f62 Add (unsigned char) cast to ctype functions 2004-10-30 17:08:12 +00:00
itojun
1ce764ab35 use arc4random 2004-09-10 05:34:54 +00:00
wiz
f05120b375 Add Xref to mscdlabel, bump date. 2004-03-18 21:13:19 +00:00
christos
c7360d4269 eliminate unneeded use of sigcontext. 2003-09-12 00:39:38 +00:00
itojun
6d415bc4b0 use bounded string op 2003-07-14 11:54:06 +00:00
itojun
24c1ca6e35 use bounded string op as much as possible 2003-07-14 09:18:22 +00:00
matt
80623b55d4 Remove unused printf argument. 2003-02-28 05:48:58 +00:00
simonb
81dc935e33 Show the last "track" as the start of the lead-out area instead of a
bogus track number.  Remove a magic number and (slightly) simplify the
TOC entry display function a little.
2003-02-19 12:55:58 +00:00
is
591f5c7964 Fix PR 18444 and a few other corner cases in cdplay.c. 2003-01-30 21:23:57 +00:00
grant
b8836fd1a4 New sentence, new line. Some mdoc cleanup. 2002-09-30 09:33:39 +00:00
is
78a5ad1963 0 is a valid value for the absolute minute to stop playing. Initialize
to UINT_MAX before scanning, and check for UINT_MAX to detect whether it
was set.
Without this, it is not possible to play the first less than a minute of
a CD using absolute msf addresses.
2002-09-28 21:48:35 +00:00
itojun
f51456c273 err/errx/warn/warnx do not need \n at the end 2002-06-11 06:06:18 +00:00
thorpej
e05ba164ef Need <sys/types.h> early on. 2002-01-23 01:09:15 +00:00
wiz
73f9704b80 Sort sections, fix punctuation. 2001-10-17 22:32:41 +00:00
ad
86b1285531 Pasto. 2001-08-21 09:56:54 +00:00
ad
64905538d6 Fix typo. 2001-08-20 13:44:08 +00:00
ad
195345977b warn() -> warnx() in one place. 2001-08-20 12:37:21 +00:00
ad
767bd4a3fa - Implement shuffle play and some other goodies. Mostly from a patch
submitted by Sergey Svishchev <svs@ropnet.ru> in PR 13682.
- More tidying.
2001-08-20 11:24:57 +00:00
ad
a76db7786e Cleanup. 2001-08-20 09:50:10 +00:00
ad
d78020d1bf Use getrawpartition(). 2001-08-20 08:21:09 +00:00
gmcgarry
61e39db8f0 Add support for skipping to the previous and next tracks. 2001-07-01 05:04:26 +00:00
wiz
0c54ccc8ac Fix date, Os and whitespace. 2001-04-09 12:30:53 +00:00
cgd
a8ec668ddf convert to use getprogname() 2001-02-19 23:03:42 +00:00
lukem
c3b1f98e93 replace guts of opencd() with call to opendisk(). prevents coredump
when a device with a leading / (e.g, `/dev/cd0') is given, as well as
promotes code reuse ;-)
2000-12-16 01:36:00 +00:00
is
135600f947 More format string cleanup by sommerfeld. 2000-10-11 14:46:00 +00:00
abs
762a48a1a4 Do not use 'Ar' for literal arguments, update Dd 2000-09-18 16:47:11 +00:00
abs
9cf3724e46 Allow a single argument to 'volume' to set both channels. 2000-08-30 10:13:52 +00:00
msaitoh
e6af398b37 use play_track() instead of play_blocks() when play whole disk
(because the xfer length field of the PLAY command (0x45) is 2 bytes.
It's too short to play whole disk)
2000-06-15 21:07:37 +00:00
ad
28c000fd87 - Re-word and reformat this to be more readable.
- Address PR 9794 by matthew green: 'd' is raw part on arches other than i386.
2000-06-14 14:38:52 +00:00
ad
1904914b75 Apply patch supplied in PR 8561 from URA Hiroshi: fixes LBA mode display on
little endian machines.
2000-06-14 13:51:45 +00:00
ad
3553879fc2 Use my proper name. 2000-06-13 13:36:42 +00:00
mrg
43aefadca4 reword slightly. 2000-04-15 18:11:00 +00:00
ad
26966d13f4 - ntohl() -> be32toh().
- Dispence with some of the idiocy in run().
- Couple of nits.
2000-01-05 18:15:20 +00:00
msaitoh
6f52aeb8d1 cdplay now uses libedit! 1999-11-26 18:34:58 +00:00
ad
a14ea316bd Typos. 1999-09-28 18:36:33 +00:00
ad
a74cd67dcf Some cleanup [Fixes to follow as soon as I get a CD-ROM drive at home] 1999-09-18 21:15:23 +00:00
ad
77895f938d - cdplay(1) first appeared in 1.5.
- correct date on manpage.
1999-07-16 14:15:49 +00:00
ad
424d2bb005 KNF 1999-06-05 14:03:32 +00:00