Apple's Latest PowerMac G4 and iMac DVs don't have the traditional analog audio connection to the soundcard, they require the sound card to do the D/A conversion, and not the CD Player. This provides higher quality sound, but it means that many popular Linux CD players won't work with them. Forently, there is an XMMS plugin that can handle this.


Notes

This Howto will become obsolete when somebody writes a full featured CDDA digital player for Linux. Xmms-CDRead is somewhat unstable, you will have to restart xmms if it crashes it. Another alternative is AlsaPlayer which by default plays CD's digitally on all models.

If you are looking for a command line player to use, try out iCD, which is a shell script I wrote that emulates cdcd, using cdda2wav. It probably is more reliable then XMMS-CDRead (well, maybe). At anyrate, it's simpler to setup, smaller, and only requires cdda2wav.

Downloading Xmms-CDRead

Xmms-CDRead is a plugin that can read CD audio as data, and pass it along to the sound card for D/A conversion.

You can download the newest version of the source code for Xmms-CDRead . It's almost at the bottom of the page, so you will want to scroll down. The current version is 0.8a at this writting, there may be a new version by the time you read this.

This Howto assumes you saved this file in your home directory (~), however you can save it where you want to.

Compiling Xmms-CDRead

Compiling (Building for PowerPC) Xmms-CDRead is the standard procedure.

It requires that you have xmms and xmms-devel (or xmms and xmms-dev dpkgs) installed before attempting to compile this. Otherwise you will get errors.

Untar the Xmms-CDRead tarball:

tar -zxvf xmms-cdread-*.tar.gz

Configure (Setup the Initial Scripts for Building) Xmms-CDRead:

./configure

Compile/Make Xmms-CDRead:

make

Become root and run make install (the below command will prompt you for your root password):

su -c "make install"

If all went well without errors, the Xmms-CDRead Plugin should be compiled. Now your ready to try it out.

Remake Your Audio Devices

Just in case, when you installed Linux your audio devices were messed up, you can remake them using (it will again prompt you for the root password): su -c "cd /dev;./MAKEDEV audio"

Configure XMMS for Xmms-CDRead

Type xmms & into the terminal.

XMMS should come up.

Type in Control+P (This is a short cut for right clicking XMMS, going to Options -> Preferences)

Select "CD Audio Player".

Below it, on the right, you will see a box saying Enable Plugin. Uncheck that.

Next, Select "AudioCD Reader".

Below it, on the right, you will see a box saying Enable Plugin. Uncheck that.

Click Configure, then the Output Tab. Make sure that Read Digital CD Audio is checked.

Click OK twice.

Selecting the CD-ROM Device

Click File +

Choose File +

Type in the location of your CD Drive and hit return. If you are using the Internal drive on these new machines this should be /dev/hdc

If you are connected to the internet, after a few seconds, the actual names for the songs will appear. If not, the CD tracks will appear as track01.cdr, etc.

Playing CD Audio

Double click any of those tracks to start the CD Player playing. As it is playing these digitally, almost all of the plugins will work.

Ejecting the CD

XMMS provides no facilities to eject a CD. The eject button brings up a dialog for adding files?!

You will have to do this in the xterm, by typing in eject -r