LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices



Reply
 
Search this Thread
Old 01-30-2005, 12:09 AM   #1
skiflyer
LQ Newbie
 
Registered: Jan 2005
Posts: 13

Rep: Reputation: 0
Sound troubles (Realplayer as an example)


I have sound... mostly.

If I run a cd player, it's good.
If I put a DVD in xine, it's good.
I get the system beep when I tab complete
I get all sorts of system sounds in KDE, too many in fact, open/close windows etc.
If I browse to /usr/share/sounds I can click on the .wavs and they play in noatrun

But...
If I play Battle of Wesnoth, no sound.
If I load a .ram file in Realplayer, no sound.
If I run /usr/bin/aplay on a .wav file, it just hangs.

I'm running debian sarge, I've recompiled the kernel... it's 2.6.8

I'm stumped. Somewhere while trying to fix it someone mentioned realplayer doesn't have alsa drivers so maybe you have to do something with that... it mentioned setting the AUDIO variable, but I have nothing set for my audio variable. But I couldn't tell when that commentary was made, or about what version of Realplayer for that matter.

Last edited by skiflyer; 01-30-2005 at 01:00 AM.
 
Old 01-30-2005, 01:22 AM   #2
ironwalker
Member
 
Registered: Feb 2003
Location: 1st hop-NYC/NewJersey shore,north....2nd hop-upstate....3rd hop-texas...4th hop-southdakota(sturgis)...5th hop-san diego.....6th hop-atlantic ocean! Final hop-resting in dreamland dreamwalking and meeting new people from past lives...gd' night.
Distribution: Siduction, the only way to do Debian Unstable
Posts: 506

Rep: Reputation: Disabled
Hi skiflyer,
try this script...its from kano who is kanotix creator....kanotix is debian based.All his scripts will work with a pure debian box just fine.I use all his scripts when needed.He has an awsome ATI and Nvidia install script....2 commands...a reboot...and bam...all done

here is his script to download all the codecs needed for a all around sound experiance...I believe real player too;

http://kanotix.com/files/install-codecs.sh


heres the site
http://kanotix.com/files

Feel free to ask about any other script.
Fix font script is used sometimes after a driver install where fonts get borked and need to be re registered.
 
Old 01-30-2005, 03:07 AM   #3
adz
Senior Member
 
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713

Rep: Reputation: 53
I'd say this is because you're using a sound server (aRTs). Try looking for an aRTs output plugin in those apps where sound doesn't work. If you can't find one then run the app like so: artsdsp command. So for example for realplayer, you type artsdsp realplay <some file.>. See if that works.
 
Old 01-30-2005, 05:19 AM   #4
skiflyer
LQ Newbie
 
Registered: Jan 2005
Posts: 13

Original Poster
Rep: Reputation: 0
Unfortunately the artsdsp method didn't help any... though it gave me the following warning when tried with realplay

Warning: LD_PRELOAD="/lib/libdl.so.2"

And, I don't see how that script can help me much since it appears prety mplayer specific, but I didn't notice anything harmful in it, so I gave it a go... also no difference.

And I'm not seeing an aRTs plugin in the apps.

Is there a way to verify if I'm running aRTs or not?
 
Old 01-30-2005, 06:36 AM   #5
darkleaf
Senior Member
 
Registered: Jun 2004
Location: the Netherlands
Distribution: debian SID
Posts: 2,170

Rep: Reputation: 45
Are you using alsa? Then the problem is that those programs are set to use OSS.

http://www.linuxquestions.org/questi...realplayer+oss
 
Old 01-30-2005, 06:49 AM   #6
adz
Senior Member
 
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713

Rep: Reputation: 53
To verify if you're using aRTs you can do a ps -A |grep artsd. If there's no output then it's not running. If a line containing the word "artsd" shows up then it's running. What you can do then is a killall -s 15 artsd (as root) and then try realplayer or something else that doesn't currently work. If it starts to work then aRTs is your problem.

What aRTs does is take over your sound output and it does any mixing itself. It is however totally crap and I've heard many a horror story about it. I would recommend not running it and using ALSA's native dmix plugin to mix sound.

Quote:
And, I don't see how that script can help me much since it appears prety mplayer specific
Err.... It's not mplayer specific in the least. It's just a wrapper to try to get some binaries to run using arts output even though they were not originally designed to do so.

Last edited by adz; 01-30-2005 at 07:00 AM.
 
Old 01-30-2005, 12:03 PM   #7
skiflyer
LQ Newbie
 
Registered: Jan 2005
Posts: 13

Original Poster
Rep: Reputation: 0
Sorry to be ambigous, I was referring to the script posted by ironwalker.

Anyway, I followed the link, and that indeed fixed the realplayer problem... don't have time to test the rest at the moment.

For those who may stumbled on it later... the rundown for me was

apt-get intsall alsa-oss
export AUDIO=/dev/dsp0
aoss realplay
 
Old 01-30-2005, 02:48 PM   #8
adz
Senior Member
 
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713

Rep: Reputation: 53
You may want to create a script that does that in case you use realplayer from your browser or something.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
realplayer troubles - deleted or not? ungua Linux - Software 5 09-17-2005 03:19 PM
RealPlayer 10 No Sound MagusYilie Linux - Software 5 05-08-2005 10:57 AM
no sound from Realplayer 10 Baracuda Linux - Newbie 2 12-24-2004 06:03 PM
System sound works OK, but RealPlayer sound not there? glenn69 Linux - Software 8 06-17-2004 09:17 AM
Sound with realplayer? rech Slackware 3 11-19-2003 05:48 AM


All times are GMT -5. The time now is 04:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration