LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (http://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   No sound after 30min-1h: how to know what makes my sound crash ? (http://www.linuxquestions.org/questions/linux-hardware-18/no-sound-after-30min-1h-how-to-know-what-makes-my-sound-crash-693745/)

frenchn00b 12-29-2008 07:59 PM

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

Tuttle 12-30-2008 02:46 AM

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.

frenchn00b 12-30-2008 02:58 AM

Quote:

Originally Posted by Tuttle (Post 3391292)
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 ?

Tuttle 12-30-2008 03:15 AM

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... ).

frenchn00b 12-30-2008 03:19 AM

Quote:

Originally Posted by Tuttle (Post 3391307)
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 ?

Tuttle 12-31-2008 01:19 AM

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...

Shadow_7 12-31-2008 07:14 AM

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.


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