2013-09-03, 12:06
(2013-09-02, 22:42)Angelscry Wrote:(2013-09-02, 19:44)fruitgull Wrote: I have the famous no sound in advanced launcher lanched applications I've read quite a lot and tried many different solutions though.Are you using pulseaudio on your XBMCbuntu system?
One of them was the solution by Angelscry in post #4705 in this thread:
Adding ~/.asoundrc:
pcm.!default {
type hw
card 0
device 3
}
ctl.!default {
type hw
card 0
device 3
}
Card 0, dev 3 should be right because speaker-test -D hdmi:CARD=NVidia,DEV=3 -c 6 works fine. And I only have one card (0). Please note that speaker-test -D hw:0,3 -c 6 doesn't produce any sound.
aplay -D hw:0,3 wavfile.wav doesn't work either. It's finding the device. But no sound.
Also when I start Spotify the playing bar moves, but no sound is heard. If I change device in .asoundrc (to something other than 3) playback doesn't start at all and the playing bar does not move. So I'm quite certain I have the correct card/device. Sound doesn't work in Firefox or Chromium either. No spdif devices are muted in alsamixer.
I've also tried to toggle the setting in advanced launcher to stop or let play the xbmc sound. I'm also of course using the correct system/sound settings i xbmc (I've tried both hdmi and analogue here), and also with or without navigation sounds. All sound works fine in xbmc otherwise.
I'm using XBMCbuntu 12.2.
Any advice on how to continue?
Are you starting your application under a windows/desktop manager environnement (like openbox)?
If using card(0) do not work but using "NVidia" work, maybe you could try to setup your .asoundrc file like this : https://gist.github.com/jasongill/2385863
What is the result of the command aplay -l ?
Thank you for your interest
No, I'm only using Alsa. Pulseaudio is not installed.
Yes. I'm using openbox/fluxbox. But if you have another way to try to start them, I'll try it. This is the script I'm using to start Spotify/Firefox:
#!/bin/bash
openbox &
/usr/bin/spotify
killall -9 openbox
-----
aplay -l:
Code:
**** List of PLAYBACK Hardware Devices ****
card 0: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 7: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 8: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 9: HDMI 0 [HDMI 0]
Subdevices: 0/1
Subdevice #0: subdevice #0
Now I've tried to change my .asoundrc to use NVidia as card (instead of 0):
defaults.pcm.!card NVidia
defaults.ctl.!card NVidia
defaults.pcm.!device 3
defaults.ctl.!device 3
No sound though.
This is the audio device I've always used and is working perfect in Xbmc: HDA NVidia, SEC EPSON PJ on HDMI #3, both for passthrough and pcm.
But I couldn't change the audio devices to custom (I have no such choice) (according to https://gist.github.com/jasongill/2385863). But perhaps this is not needed.