This is a standalone cd-audio player.
The code could as well be used in other projects to include cd player feature.
It won't add ANY new dependencies since it uses only cdda2wav (icedax) and aplay.
The code is very simple (easy to understand) - it is only 4Kb.
Language support

Joined: 11 Dec 2007Posts: 1426Location: somewhere at the end of rainbow...

Posted: Fri 01 May 2009, 14:54 Post_subject:

tried on puppy 3.01 (2.6.21.7 kernel)

it shows an error:

Code:

# expr: syntax error
cdda2wav: No such device or address. Cannot open '/dev/sr0'. Cannot open SCSI driver.
cdda2wav: For possible targets try 'cdda2wav -scanbus'.
Use the script scan_scsi.linux to find out more.
Probably you did not define your SCSI device.
Set the CDDA_DEVICE environment variable or use the -D option.
You can also define the default device in the Makefile.
For possible transport specifiers try 'cdda2wav dev=help'.
aplay: playback:2018: read error

to solve Cannot open '/dev/sr0 changed this to '/dev/hdc in func

statrted again, but another message is showed (I think this time is CD fault)

Both methods you propose work for me under Puppy 3.01, as well as my own hard-coded one. I have a symlink in /dev from hdd to cdrom, and your second suggestion may be the best one, since it is not device-specific. I installed Plinej's package, so I have cddb_query on my system. It would be nice to get the raw cdda2wav data such as:

The device setting is now pretty universal. I hope we hear from some other users, too. About the length detection, it is not so much that I miss it, but without anything in the track list, I cannot play the tracks I might wish to hear by pointing at them, even if they have little useful information except for the track number and the duration. Right now I just get a blank box, so no selection by point-and-click is possible.

Uploaded 0.2 once again.
It is now using /dev/cdrom. It failed for me without device setting
vovchik
It should show a complete list (track 1, 2, 3 ... ) even if no cddb is used. Please post the terminal output.

I kept looking at line 34 of pcd last night and saw nothing wrong with it, so I don't understand. My bash is GNU bash, version 3.2.29(2)-release (i486-slackware-linux-gnu), which is pretty standard, and you have a perfectly normal "while" construction and test. I am scratching my head....