URN Logo
UNIX Resources » Linux » Linux Forum » Linux Sound Problems » Page.11 » Can't Open /dev/dsp! When Trying To Play File
announcement The content of this page is collected from Linux Forum, All copyrights and other associated rights are reserved by the original authors of the articles.
Resources
China Linux Forum(finished)
Linux Forum(finished)
FreeBSD China(finished)
linuxforum.com
  LinuxForum General Chat
  Linux Advocacy
  LinuxForum Polls
  Introductions
  Linux Kernel Support
  Patch Management
  Development Release
  Linux Programming
  Linux Security
  Linux Software
  Linux Hardware Problems
    Linux Video Problems
    Linux Sound Problems
  Linux Networking Support
  Linux Printing Support
  Linux Human Interface Devices Support
  Linux Data Storage Support
  Linux Applications Support
  Linux Installation Support
  Linux Laptops Support
  Linux Motherboard, Chipsets, CPU, Memory
  Miscellaneous
  Debian Linux Support
  Ubuntu Linux Support
  LiveCD Discussions
  Gentoo Linux Support
  Mandrake Linux Support
  Redhat / Fedora Linux Support
  Slackware Linux Support
  SuSE Linux Support
  CentOS Linux Support
  Linux Web Servers
  Linux DNS Servers
  Linux Database Servers
  Linux Email Servers
  Linux FTP Servers
  Linux Squid Proxy Server
  Linux Samba Help
  Linux cPanel Help
  Linux Ensim Help
  Linux Plesk Help
  Linux Webmin / Usermin Help
  Qmail Toaster Help
  Linux Games
  Windows Game Emulation
  Linux Discussions
  General Linux Discussions
  Red Hat Linux Discussions
  More Red Hat Linux Discussions
  Mandrake Linux Discussions
  Slackware Linux Discussions
  SuSE Linux Discussions
  Debian Discussions
  Samba Help
  Linux Security
  Linux Networking
  Gentoo Help
  Operating System Rant Forum
  Hardware Rants
   
Can't Open /dev/dsp! When Trying To Play File
Subject: Can't Open /dev/dsp! When Trying To Play File
Author: rakxzo    Posted: 2004-10-15 15:27:23    Length: 2,177 byte(s)
[Original] [Print] [Top]
Hello,

I have Redhat 3.2.3-34, Linux Version 2.4.21-15.EL.  Its running on an old toshiba laptop which I want to use to play our music on hold at our office.  Basically I am on the command line and I've installed mpg123 to play the mp3(s) I need.


When I do:
CODE
# mpg123 file.mp3


the output aside from the version of mpg123 and disclaimer is this:


CODE
Can't open /dev/dsp!

------------
I'm not sure how to get beyond this point.  Any help is greatly appreciated.
The version of mpg123 is 0.59r (1999/Jun/15).  Which seems really old.  

If you have a better player you recommend or simply a way to fix this, I thank you in advance.
-------------


The output of  cat /proc/pci   is huge, should I still post it here?

---
cat /etc/modules.conf
CODE

alias eth0 e100
alias usb-controller usb-uhci


----
ls -L -l /dev/dsp*

CODE
crw-------    1 root     root      14,   3 Feb 18 07:26 /dev/dsp
crw-------    1 root     root      14,   3 Feb 18 07:26 /dev/dsp0
crw-------    1 root     root      14,  19 Feb 18 07:26 /dev/dsp1
crw-------    1 root     root      55,   0 Feb 18 07:26 /dev/dsp56k



 
----
______________________
check out my site www.muychingon.com
If life is merely a joke, the question still remains: for whose amusement?
[Original] [Print] [Top]
Subject: Can't Open /dev/dsp! When Trying To Play File
Author: the_unforgiven    Posted: 2004-10-16 00:20:04    Length: 92 byte(s)
[Original] [Print] [Top]
Looks like you don't have your soundcard configured.
Run sndconfig as root.
----
[span style='font-size:12pt;line-height:100%']The Unforgiven
-------------------------------
So I dub thee unforgiven[/span]
Linux User #358564
[Original] [Print] [Top]
Subject: Can't Open /dev/dsp! When Trying To Play File
Author: rakxzo    Posted: 2004-10-17 13:04:31    Length: 173 byte(s)
[Original] [Print] [Top]
Thanks, I will try this.  Its sunday so I'll have to wait till Monday to test this in the office.
I'll post back if this does the trick.

 
----
______________________
check out my site www.muychingon.com
If life is merely a joke, the question still remains: for whose amusement?
[Original] [Print] [Top]
Subject: Can't Open /dev/dsp! When Trying To Play File
Author: rakxzo    Posted: 2004-10-18 10:46:16    Length: 211 byte(s)
[Original] [Print] [Top]
I guess thats a way to start however, when I try to run sndconfig it says command not found.  How would I get that installed?  -- BTW I am logged in as root when doing all this.

thanks!
----
______________________
check out my site www.muychingon.com
If life is merely a joke, the question still remains: for whose amusement?
[Original] [Print] [Top]
Subject: Can't Open /dev/dsp! When Trying To Play File
Author: slackjack    Posted: 2004-10-18 12:24:54    Length: 11 byte(s)
[Original] [Print] [Top]
EDIT:Sorry
----
[Original] [Print] [Top]
Subject: Can't Open /dev/dsp! When Trying To Play File
Author: the_unforgiven    Posted: 2004-10-19 00:06:31    Length: 1,029 byte(s)
[Original] [Print] [Top]
QUOTE (rakxzo @ Oct 18 2004, 09:16 PM)
I guess thats a way to start however, when I try to run sndconfig it says command not found.  How would I get that installed?  -- BTW I am logged in as root when doing all this.

thanks!

 Two options:

1. Install sndconfig, or redhat-config-soundcard rpm from the CDs/Redhat FTP.
2. Install ALSA drivers which have OSS emulation.

Check out other posts if you decide to install and use ALSA.
It's really good, though it is a bit complicated to set up.
Since it supports OSS emulation, most of your current audio s/w (like mpg123) still continues to work with it.

Other posts (including the pinned once) have detailed instructions on how to set up ALSA for 2.4 series kernels too.
----
[span style='font-size:12pt;line-height:100%']The Unforgiven
-------------------------------
So I dub thee unforgiven[/span]
Linux User #358564
[Original] [Print] [Top]
Subject: Can't Open /dev/dsp! When Trying To Play File
Author: rakxzo    Posted: 2004-10-19 12:31:47    Length: 991 byte(s)
[Original] [Print] [Top]
QUOTE
1. Install sndconfig, or redhat-config-soundcard rpm from the CDs/Redhat FTP.
2. Install ALSA drivers which have OSS emulation.


I looked through our RPMS (I installed via HTTP from a local server in our office), and sndconfig is not there for RH 3.0, only 2.1 has it listed.  I also wasn't able to find it on the Redhat Site for 3.0.

As far as "redhat-config-soundcard" goes, it is there but it requires X to be running.  

so I ran X and the configuration still failed.  It said that the audicard could not be automatically configured.

So I guess the ALSA drivers may do the trick for me, although I don't exactly understand what these do.


I'll post back when I have a solution.

thanks.
----
______________________
check out my site www.muychingon.com
If life is merely a joke, the question still remains: for whose amusement?
[Original] [Print] [Top]
« Previous thread
No Sound With Mandrakelinux 10.0
Linux Sound Problems
Page. 11
Next thread »
After Migrate To New Kernel(2.6.7)
     

Copyright © 2007 UNIX Resources Network, All Rights Reserved.      About URN | Privacy & Legal | Help | Contact us
Powered by FreeBSD    webmaster: webmaster@unixresources.net
This page created on 2007-08-01 11:49:32, cost 0.032018184661865 ms.