LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   how to play audio cd in slackware 10.1? (http://www.linuxquestions.org/questions/slackware-14/how-to-play-audio-cd-in-slackware-10-1-a-336976/)

anindyanuri 06-25-2005 01:33 AM

how to play audio cd in slackware 10.1?
 
In my slackware box I can play mp3 using xmms and it is working fine but no sound if i enter an audio cd.

if i put an audio cd there is no error message, simply i cannot hear anything from my speaker.

regards
anindya

uselpa 06-25-2005 04:49 AM

After inserting your audio CD, run the "KsCD" program (in the multimedia section) and press the play button.

If you still hear nothing or nearly, go into a konsole and change to user root ("su -"). Run "alsamixer" and set the "CD" level to +/- its maximum. Press the ESC key and save the settings using "alsactl store".

gbonvehi 06-25-2005 06:43 AM

Maybe you don't have the audio cable connected from your cd reader to your soundcard. So analog sound won't be posible, in XMMS select the audio cd plugin and configure it to extract audio digitally.

anindyanuri 06-25-2005 08:35 AM

Quote:

Originally posted by gbonvehi
Maybe you don't have the audio cable connected from your cd reader to your soundcard. So analog sound won't be posible, in XMMS select the audio cd plugin and configure it to extract audio digitally.
Noted your point carefully but there is no chance of that error, as I am sure that the audio cable is connected from my CDROM drive to my sound card. I can play CD using that particular CDROM deive from Fedora Core 3.

Regards
anindyanuri

uselpa 06-25-2005 09:13 AM

Did you try what I suggested in my previous post?

ringwraith 06-25-2005 10:31 AM

http://xmms.org/docs/readme.php

About half way down it discusses playing cds.

uselpa 06-25-2005 01:27 PM

This is how it works for me in XMMS:
Goto Options->Preferences (or press Ctrl-P)
Select the Audio I/O Plugins tab
Choose input plugin "CD Audio Player" and press Configure
Make sure the device & path are correct (cf /etc/fstab) and choose "Digital Audio extraction"
Press OK and make sure your output plugin is correct (e.g. aRts if you use KDE)
Press OK
Now choose Play Directory (or Shift-L) and chose your CD mount point.
Press the Play button.

anindyanuri 06-25-2005 11:43 PM

Quote:

Originally posted by uselpa
After inserting your audio CD, run the "KsCD" program (in the multimedia section) and press the play button.

If you still hear nothing or nearly, go into a konsole and change to user root ("su -"). Run "alsamixer" and set the "CD" level to +/- its maximum. Press the ESC key and save the settings using "alsactl store".

I tried this alsamixer and the scrren which were shown there, I found that volume control of CD is set to zero level. In the top left, I found a message that "CD off". I could able to increase the volume control of the CD with the help of up arrow key but it could not help as I could not make the CD on. How do I turn on the CD's volume control in alsa mixer?

Regards
anindyanuri

anindyanuri 06-25-2005 11:55 PM

Now I could able to turn on the "CD volume control" with m switch of my keyboard and did not forget to save the settings with alsactl store. Still I am not able to hear any music from CD.

Regards

anindyanuri 06-26-2005 12:35 AM

The problem is solved. Thank you uselpa and other too. Actually the problem generated from another place. Telling you that,

1. During my installation of Slackware 10.1 the OS detected my CD writer drive as /dev/cdrom and CDROM drive was not detected.

2. I made two directories /dev/hdd and /dev/hdc and linked CDROM to /dev/hdd and CDWriter to /dev/hdc.

3. The KsCD-->Extras-->Configure KsCD and the CDDrive option was set to /dev/cdrom. Now I have changed this drive to /dev/hdd and it starts working.

4. However as I already have changed alsamixer as stated in my previous post as per the direction of uselpa (increased the volume of CD Volume control), I made the previous part complete to get sound output and I get the sound output at once.

Thank you all for helping me. I acknowledge all your effort. My best regards to all of you.

Still I have a question to ask :

When my CDWriter was detected first as CDROM (during installation of Slackware 10.1) the permission set to that /dev/cdrom is as follows,
LRWXRWXRWS (giving all in caps to recognize 'L' )

Now the permission set to /dev/hdd and /dev/hdc are as...
BRWXRWXRWX (for both /dev/hdd and /dev/hdc)

Now the question is that, may I get another new problem with the first letter (which is now B) of my drives? Please guide me in this regard.

Regards
anindyanuri

shepper 06-26-2005 12:38 AM

A more basic problem is if you have permission to access the cdrom drive. I can't tell from your first post if the drive is accessed or not. A quick check is to see if you can play the cd as root.
The default Slackware install does not give permissions for users to access the cdrom.
One way to fix is to "chmod 644 /dev/cdrom". Fedora default install gives permissions to the cdrom but Slackware users learn about device permissions :D

My post was too slow, it looks like he fixed it.

gbonvehi 06-26-2005 12:39 AM

Usually those "all (read,write,execute) to all" permissions are given to symlinks.
First check it's not a symlink with: ls -l /dev/cdrom
It's expected to see /dev/cdrom to be a symlink to /dev/hdc or whereever you had your CDrom when you installed Slackware.
Usually permissions for harddisk and cdroms are brw-rw---- with root as owner and disk as group in harddisk and cdrom as group on cdroms. So adding your user to the cdrom group (or disk if you want your user to be able to access the harddisk directly) will give you read-write permissions to the raw device.

anindyanuri 06-26-2005 12:55 AM

In case of file permission what does it mean by those b and l(L)?

regards
anindyanuri

gbonvehi 06-26-2005 01:06 AM

It indicates the kind of file it's. It's b (or c) for device files, l for links, d for directories, etc.


All times are GMT -5. The time now is 11:50 AM.