Lazy - A simple CD player with CDDB support to display song titles
- INTRODUCTION
Hello Folks!
This is Lazy, a *NIX shell CD player. My initial idea for this
software was to have a simple program which could play CD's and
display Artist and Song names, with an output simple as the default
output from mpg123.
- FEATURES
Lazy has some options you can set in the cmd line:
$ lazy -h
Available options:
-h : this help
-v : verbose mode
-k : keep the music playing when the program exit
-c : close the tray before play the disc
-d : use digital extraction
-f <device>: overrides the CDROM <device> specified in ~/.lazyrc
-t[r|e] : show the seconds played from the song
e - display elapsed time
r - display remaining time
if none is specified, behave as set in ~/.lazyrc
This function will not work when using digital
extraction. Why? Aah... I don't want to implement
that. You can copy+paste the code from playcd.c
to digital.c if you want it.
-r : play in random mode
-s : just show the tracks name, without playing any of them
-l <list> : play only <list> tracks
-o <track> : start playing from track <track>
You can combine these options, too:
$ lazy -cvtr -o 9
This command will close the CD-tray, show the remaining time, be
verbose in every step and start playing at track #9.
$ lazy -l 1 4 5
This will play only the tracks #1, #4 and #5
Lazy will NOT work when using the random function with the -o option.
CONFIG FILE:
Lazy also install a config file in your home, found at ~/.lazyrc
You can change it's settings to fetch your configuration. The
options available are:
CDDEV=/dev/cdrom # the CDROM device
AUDIODEV=/dev/dsp # the AUDIO dev, used by digital extr.
ADDRESS=freedb.freedb.org # the CDDB server address
PORT=888 # the CDDB server port
CDDB_PATH=~/cddb # path to the local cddb_dir
REMAINING | ELAPSED # display remaining or elapsed time
If you have not the cddb path created yet, Lazy will try to do
it for you. The ADDRESS is by default set to freedb.freedb.org.
I am not using cddb.com because of their interest on making money
from the 'cddb2' and their "closed-source" policy. (thanks a lot
to Matthias Hensler for pointing me to these informations). But now
cddb.com neither works more with "unregistered software". Well, I
will not put Lazy to deal with commercial stuff.
If you don't want to Lazy communicate with an freedb server, you
can enter an invalid ADDRESS, such as 'freedb.freedb.org_'.
- TODO
Lazy will have functions to skip/back tracks without using the ncurses library.
- FINALLY
Feel free to make any comments, suggestions or bug announcement. Please write any of these to:
Lucas Correia Villa Real <lucasvr@gobolinux.org>
You can find the last stable version always at:
http://www.cscience.org/~lucasvr/Projects/lazy.html
Enjoy it!
