DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD General

FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 11th August 2008
JimC JimC is offline
New User
 
Join Date: Aug 2008
Posts: 9
Thanked 0 Times in 0 Posts
Default Sound

I am using a SATA DVD drive and trying to play a CD.

I have loaded the sound drivers and and everything looks OK in dmesg and in sndstat.

When I enter

cat file > /dev/dsp

I get noise from the speakers.

When I enter

cdcontrol play

The cd spins and goes from track to track but there is no sound from the speakers. There is no audio cable from the drive to the motherboard as there is with a CD drive. I have run out of ideas.

Thanks.
Reply With Quote
  #2   (View Single Post)  
Old 11th August 2008
roddierod's Avatar
roddierod roddierod is offline
Real Name: Rod Person
VPN Cryptographer
 
Join Date: Apr 2008
Location: Pittsburgh, Pa
Posts: 372
Thanked 13 Times in 13 Posts
Default

Quote:
Originally Posted by JimC View Post
There is no audio cable from the drive to the motherboard as there is with a CD drive. I have run out of ideas.
Are you saying that there is no connect on DVD for the audio cable, or you just haven't connected the cable? Because - you need the audio connection to play audio cds.
__________________
"The basic tool for the manipulation of reality is the manipulation of words. If you can control the meaning of words, you can control the people who must use the words." -Philip K. Dick
Reply With Quote
  #3   (View Single Post)  
Old 12th August 2008
JimC JimC is offline
New User
 
Join Date: Aug 2008
Posts: 9
Thanked 0 Times in 0 Posts
Default

The DVD drive has two connections on the back. One for the power and one for the SATA cable. There is no connection for an audio cable.
Reply With Quote
  #4   (View Single Post)  
Old 12th August 2008
18Googol2's Avatar
18Googol2 18Googol2 is offline
Real Name: whoami
Spam Deminer
 
Join Date: Apr 2008
Location: pwd
Posts: 283
Thanked 20 Times in 18 Posts
Default

I gave up on cdrecord. The status always looks perfect, but no sound coming out (I do have cd entry in mixer section)

Your best bet is to try mplayer. It need to be compiled with libcdio (installing stand alone libcdio port wont work). Once installed, the command to play cd:

Code:
mplayer -cdrom-device /dev/x cdda://
x is your optical device, enter it accordingly. Also, check permission for that drive, you may need to become superuser
__________________
The power of plain text? It can control an entire OS

Last edited by 18Googol2; 12th August 2008 at 07:03 PM.
Reply With Quote
  #5   (View Single Post)  
Old 13th August 2008
phoenix's Avatar
phoenix phoenix is offline
Risen from the ashes
 
Join Date: May 2008
Posts: 699
Thanked 90 Times in 81 Posts
Default

If you don't have the analog audio cable connecting the optical drive the soundcard (or motherboard), then you cannot play analog audio or use any audio players that use "Redbook" analog audio methods to read the disc.

You have to use "digital reading" or "digital extraction" features in audio programs to read the disc as if it were data, which then transfers the data across the SATA cable and to the soundcard, where it is then converted to analog and sent to the speakers. From the sound of it (pun intended) cdcontrol doesn't support digital audio extraction. Find an audio player that does.
__________________
Freddie

Help for FreeBSD: Handbook, FAQ, man pages, mailing lists.
Reply With Quote
  #6   (View Single Post)  
Old 13th August 2008
JimC JimC is offline
New User
 
Join Date: Aug 2008
Posts: 9
Thanked 0 Times in 0 Posts
Default

I tried installing the mplayer port (FreeBSD 6.3). At the config screen I selected libcdio support. The build ends with undefined reference errors when compiling the cdda functions. Is there something else I need to do?
Reply With Quote
  #7   (View Single Post)  
Old 13th August 2008
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin
Old man from scene 24
 
Join Date: Apr 2008
Location: Eindhoven, Netherlands
Posts: 2,062
Thanked 198 Times in 156 Posts
Default

Post the full error message.
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
Reply With Quote
  #8   (View Single Post)  
Old 14th August 2008
JimC JimC is offline
New User
 
Join Date: Aug 2008
Posts: 9
Thanked 0 Times in 0 Posts
Default

The first of many error messages is as follows

stream/stream.a (stream_cdda.0)(.text+0a5): In function 'open_cdda':
:undefined reference to 'cdio_cddap_identify'

libcdio was installed during the build in /usr/local/lib.
Reply With Quote
  #9   (View Single Post)  
Old 15th August 2008
18Googol2's Avatar
18Googol2 18Googol2 is offline
Real Name: whoami
Spam Deminer
 
Join Date: Apr 2008
Location: pwd
Posts: 283
Thanked 20 Times in 18 Posts
Default

Probably some compiled files for that port were previously messed up. Try

Code:
#make clean
to clean the compiled files and compile mplayer again
__________________
The power of plain text? It can control an entire OS
Reply With Quote
Old 15th August 2008
JimC JimC is offline
New User
 
Join Date: Aug 2008
Posts: 9
Thanked 0 Times in 0 Posts
Default

I selected config options libcdio AND cdparanoia and mplayer compiled OK.

Thanks to all who helped with this.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sound on FreeBSD corey_james Guides 19 13th August 2010 11:05 PM
Recording sound with external sound card backrow OpenBSD General 5 21st August 2009 08:17 PM
qemu sound Oko OpenBSD Packages and Ports 2 7th May 2009 06:59 AM
Sound Problem. MetalHead OpenBSD General 3 16th November 2008 09:27 PM
USB Sound? FreeMan OpenBSD General 16 7th May 2008 06:09 AM


All times are GMT. The time now is 10:46 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick