LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 12-29-2008, 07:59 PM   #1
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,546

Rep: Reputation: 50
No sound after 30min-1h: how to know what makes my sound crash ?


Hello,
I encoutner teh problem: No sound after 30min-1h: how to know what makes my sound crash ?

I would like to know what is happening. What takes the sounds apparently after a certain time, or the process that makes the problem?

thanks for any ideas
Regards
 
Old 12-30-2008, 02:46 AM   #2
Tuttle
Senior Member
 
Registered: Jul 2003
Location: Wellington, NZ
Distribution: mainly slackware
Posts: 1,289

Rep: Reputation: 52
In my experience some process tries to make a sound, using play or similar, but doesn't exit properly. Use top and look for a 'zombie' process when the sound dies.
 
Old 12-30-2008, 02:58 AM   #3
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,546

Original Poster
Rep: Reputation: 50
Quote:
Originally Posted by Tuttle View Post
In my experience some process tries to make a sound, using play or similar, but doesn't exit properly. Use top and look for a 'zombie' process when the sound dies.

Code:
18588 ?        S      0:05 /usr/bin/artsd -F 10 -S 4096 -s 60 -m artsmessage -l 3 -f
Code:
frenchn00b    25370  0.0  0.0   2748   464 ?        S    09:52   0:00 sleep 30s
root     25378  0.0  0.0   3432  1000 pts/0    R+   09:52   0:00 ps aux
frenchn00b  27205  0.0  1.4  19088 15084 tty6     S+   04:45   0:00 festival --tts
frenchn00b  27207  0.0  0.3   7472  3172 tty6     S+   04:45   0:00 /usr/lib/festival/audsp
frenchn00b  27208  0.0  0.1   7472  1648 tty6     S+   04:45   0:00 /usr/lib/festival/audsp
frenchn00b  27209  0.0  0.1   4136  1432 tty6     S+   04:45   0:00 sh -c FILE=/tmp/audiofile_27208;SR=16000; aplay -q -c 1 -t r
frenchn00b  27210  0.0  0.1   4000  1304 tty6     S+   04:45   0:00 aplay -q -c 1 -t raw -f s16 -r 16000 /tmp/audiofile_27208
frenchn00b  32303  0.0  1.4  19088 15084 tty6     S+   05:50   0:00 festival --tts
frenchn00b  32304  0.0  0.3   7472  3172 tty6     S+   05:50   0:00 /usr/lib/festival/audsp
frenchn00b  32305  0.0  0.1   7472  1644 tty6     S+   05:50   0:00 /usr/lib/festival/audsp
frenchn00b  32306  0.0  0.1   4136  1436 tty6     S+   05:50   0:00 sh -c FILE=/tmp/audiofile_32305;SR=16000; aplay -q -c 1 -t r
frenchn00b  32307  0.0  0.1   4000  1304 tty6     S+   05:50   0:00 aplay -q -c 1 -t raw -f s16 -r 16000 /tmp/audiofile_32305
I think I found the running process every 5 minutes:
Code:
cat script
#!/bin/sh

echo " la la la la" | festival --tts

mplayer  /usr/share/sounds/KDE_Beep_ClockChime.wav   ; mplayer  /usr/share/sounds/KDE_Beep_ClockChime.wav   ; mplayer  /usr/share/sounds/KDE_Beep_ClockChime.wav ;  mplayer  /usr/share/sounds/KDE_Beep_ClockChime.wav
why is this giving such errors ? Is it a bug from festival ?
 
Old 12-30-2008, 03:15 AM   #4
Tuttle
Senior Member
 
Registered: Jul 2003
Location: Wellington, NZ
Distribution: mainly slackware
Posts: 1,289

Rep: Reputation: 52
You could try killing/stop using artsd, alsa is quite capable of dealing with mixing these days. If it still happens then maybe you have found a bug.
Best way to find out is to compile the program as an un-stripped binary and read the debugging output, it's not too hard as long as you are aware of how the thing is compiled in the first place (ie. what ./configure options are used, patches applied etc... ).
 
Old 12-30-2008, 03:19 AM   #5
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,546

Original Poster
Rep: Reputation: 50
Quote:
Originally Posted by Tuttle View Post
You could try killing/stop using artsd, alsa is quite capable of dealing with mixing these days. If it still happens then maybe you have found a bug.
Best way to find out is to compile the program as an un-stripped binary and read the debugging output, it's not too hard as long as you are aware of how the thing is compiled in the first place (ie. what ./configure options are used, patches applied etc... ).
Well it's very easy to know what is doing the code. I wrote it. That's my very first program, well still learning
http://yellowprotoss.ye.funpic.org/debian/website/

So clearly the mixer cant handle mplayer in background from tty6
soo bug or not ?
 
Old 12-31-2008, 01:19 AM   #6
Tuttle
Senior Member
 
Registered: Jul 2003
Location: Wellington, NZ
Distribution: mainly slackware
Posts: 1,289

Rep: Reputation: 52
haha! wow!
so try:
Code:
cat script
#!/bin/sh

echo " la la la la" | festival --tts

mplayer /usr/share/sounds/KDE_Beep_ClockChime.wav & mplayer /usr/share/sounds/KDE_Beep_ClockChime.wav & mplayer /usr/share/sounds/KDE_Beep_ClockChime.wav & mplayer /usr/share/sounds/KDE_Beep_ClockChime.wav
exit
?? just a guess...

Last edited by Tuttle; 12-31-2008 at 01:25 AM.
 
Old 12-31-2008, 07:14 AM   #7
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 1,506

Rep: Reputation: 233Reputation: 233Reputation: 233
alsa can handle mixing, if the sound using apps use alsa natively. So -ao alsa, and NOT -ao oss for mplayer. Festival is pretty much hard coded to use OSS afaik. Festival doesn't seem to play well with anything other than /dev/dsp for card 0. And some web browsers / or their configurations are OSS bound.

My audio issue is HDTV related. Turning off/on the TV fixes my cutout. It has some strange Video 3 audio input for HDMI 1 (DVI) video input. Which works well with my after market soundcard. For a while anyway. My videocard also has HDMI audio, so that might be getting in the way.
 
  


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
Sound card configure crash; No Sound deathbox Suse/Novell 2 09-11-2006 12:26 AM
Sound card makes no sound Dankles Linux - Hardware 2 09-09-2005 04:10 PM
Sound makes static like a radio... epod69 Ubuntu 3 09-03-2005 01:24 PM
mplayer makes sound after it quit abnormally icoming Linux - General 2 08-28-2004 04:16 PM
Sound problem (makes no sense) carlosinfl Fedora 6 07-20-2004 06:40 PM


All times are GMT -5. The time now is 04:31 AM.

Main Menu
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