Posts: 1,741
Joined: Jul 2006
Reputation:
4
2008-08-14, 23:16
Okay, have had this before and couldn't fix it - I reloaded instead. I have now had it happen again, this time on Hardy, and I don't have a recent backup. I recall others having had this happen but searches aren't bringing me any useful results. The last time this occurred I still had analog output if I used headphones but digital was cooked, I've not got headphones handy but ASSume this is much the same.
Scenario was this - went to watch a movie, menu came up, selected Play Movie, and XBMC crashed to desktop. Mouse was unresponsive, I rebooted via SSH. When XBMC was run again no audio. Play something in mPlayer and I'm not hearing audio there either. Menu sounds etc. all dead in XBMC. Digital output is *not* muted and volume is up. I *know* others have seen this and solved it but danged if I can find those posts, I'd appreciate a hand. Thanks!
Posts: 3,555
Joined: Oct 2003
Reputation:
12
tslayer
Team-XBMC Developer
Posts: 3,555
2008-08-14, 23:19
(This post was last modified: 2008-12-18, 22:44 by tslayer.)
I've had this where only digital audio would output and NOT analog (still out of spdif).
What I usually do to fix in my scenario is:
0) Stop XBMC
1) Create a file in your home directory called .asoundrc that contains the following single line: pcm.!default spdif
2) Run: speaker-test -c 2
3) If you hear sound, you can stop.
4) Remove .asoundrc
5) Restart XBMC
Try that...
42.7% of all statistics are made up on the spot
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
Posts: 3,555
Joined: Oct 2003
Reputation:
12
tslayer
Team-XBMC Developer
Posts: 3,555
Nono..
Create a FILE called .asoundrc in your home directory with the following contents in the .asoundrc file:
pcm.!default spdif
42.7% of all statistics are made up on the spot
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
Posts: 1,741
Joined: Jul 2006
Reputation:
4
Fixed!!! Thank you VERY much!
Posts: 33
Joined: Jul 2008
Reputation:
0
arkay
Junior Member
Posts: 33
When I tried the .asound method it cause me nothing but issues so I hunted around till I found this:
/usr/bin/iecset audio on
Fixes it every time for me. I experienced the problem daily as I have a script run by irexec to kill xbmc and run myth and vice versa. Every time you kill something with Digital Audio you lose PCM on my machine. The above line in the script before restarting xbmc/myth fixed all my issues.
Cheers,
Arkay
Posts: 3,555
Joined: Oct 2003
Reputation:
12
tslayer
Team-XBMC Developer
Posts: 3,555
More like a dumb ALSA bug that has existed for a few years apparently.
42.7% of all statistics are made up on the spot
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
Posts: 3,555
Joined: Oct 2003
Reputation:
12
tslayer
Team-XBMC Developer
Posts: 3,555
I think it usually happens when you are watching some movie that has AC3 or some digital audio and then crashes while watching that.
42.7% of all statistics are made up on the spot
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
Posts: 7
Joined: Sep 2008
Reputation:
0
I still can't seem to figure out how to get my sound to work properly. Movies and digital (ac3) music work but mp3's don't. I tried Tslayers fix (thanks Treefour for explaining it) and no sound, but if I reboot with the .asoundrc file navigation sounds worked. I've been to the Ubuntu forums and found loads of info still no sound. Does anyone know how I can fix this?
Posts: 3,555
Joined: Oct 2003
Reputation:
12
tslayer
Team-XBMC Developer
Posts: 3,555
TheBurner: Maybe you knocked your sound card out when putting in your esata card.
Check dmesg or even try speaker-test to see if sound even works at all.
TS
42.7% of all statistics are made up on the spot
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.