fluxbox, XBMC and sound
#1
Question 
right now i've XBMC Live configured and i can start firefox using the launcher plugin. I only have two problems, the flubox font sizes are huge and there is no sound in firefox window (when using flash plugin, for example).

NOTE: i've tried editing the overlay file to change the fonts, but it doesn't seems to work..

Does anyone knows how to solve this problem?

thanks in advance,
Reply
#2
I'm not sure about the fonts, but the sound issue is likely related to ALSA's single use infrastructure. I thought that dmix was in the mix by default in recent builds of ALSA. Otherwise you'll have to setup a dmix device and plug in your sound device into that.
Reply
#3
Can u give more details please? Do i need to update ALSA? how can i setup dmix device? what is this?

regards,
Reply
#4
You can also install pulseaudio if you don't need digital playback.
Reply
#5
I need digital playback, doesn't pulseaudio work with digital passthrough? Does dmix work with digital out? I'm trying right now to configure pulseaudio with xbmc but it says that "pulseaudio not in group pulse-rt" how can i fix this? why i don't have navigation sounds when playing music or playing a movie?

regards,
Reply
#6
May be that it helps to someone to know that i've solved the font issues by editing the xorg.conf file and adding:

Option "DPI" "96 x 96"

into the monitor section... now fluxbox is started with a standard font sizes...
Reply
#7
Find out what the HDMI device number is by entering:
aplay -l

Then create the file:
/home/<username>/.asoundrc

Add the following line:
defaults.pcm.device <HDMI device number>

Change the XBMC Audio settings:

Audio Output Device: DEFAULT
Passthrough Output Device: CUSTOM
Custom Passthrough Device: plughw:0,<HDMI device number>

Let us know if this worked
Reply
#8
The previous post should work as long as you also have set:

Custom Passthrough Device: plughw:0,<HDMI device number>.
Reply
#9
Well, I assume that the xbmc sound checking have little or no effect on firefox?

Keep the xbmc settings as is, they have nothing to do with this. Just redirect the "default" in asounrc.
Reply
#10
http://forum.xbmc.org/showthread.php?tid=71664

Take a look here for font issue. You need to change dpi.
Reply
#11
Ok, tried it myself but it doesn't seem to to be working.

Locating the correct device number
Code:
simkin@xbmc:~$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: NVidia [HDA NVidia], device 0: ALC889A Analog [ALC889A Analog]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 1: ALC889A Digital [ALC889A Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 3: NVIDIA HDMI [NVIDIA HDMI]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
Changed the .asoundrc to config 1
Code:
simkin@xbmc:~$ cat .asoundrc
defaults.pcm.device 3
Rebooted the Asrock and tried to play a test WAV file
Code:
simkin@xbmc:~$ aplay cat.wav
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.HDA-Intel.pcm.hdmi.3:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2'
ALSA lib conf.c:4154:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4633:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2211:(snd_pcm_open_noupdate) Unknown PCM hdmi
aplay: main:608: audio open error: No such file or directory
Changed the .asoundrc to config 2
Code:
simkin@xbmc:~$ cat .asoundrc
pcm.!default {
type plug
slave {
pcm "hdmi"
}
}
(Successfully) played a test WAV file
Code:
simkin@xbmc:~$ aplay cat.wav
Playing WAVE 'cat.wav' : Unsigned 8 bit, Rate 11025 Hz, Mono

In XBMC started Firefox and heard sound Smile

Rebooted the Asrock a second time and played a test WAV file. This time I did not hear anything
Code:
simkin@xbmc:~$ aplay cat.wav
aplay: main:608: audio open error: Device or resource busy

In XBMC started Firefox and no longer heard sound Sad

Any ideas?
Reply
#12
Friendly bumb Smile
Reply
#13
Simkin Wrote:Friendly bumb Smile

You probably checked, but were the changes you made that worked still there after you rebooted?
Reply
#14
If you force xbmc to "fail to initialize device" sound will work when you launch firefox.
I get this issue every second song I try to play(.wma's), so the bug is now a feature. :p
Reply

Logout Mark Read Team Forum Stats Members Help
fluxbox, XBMC and sound0