Thanks.
Ubuntu 8.04 (and 7 also IIRC) has
dmix and
alsa-oss enabled by default. Also just in case, I tried replacing every command (
xbmc,
zsnes, etc) to
aoss [command], but it didn't change a thing. The fact that brings perspective, though, is that
some apps (
rhythmbox + 3
VLCs) mix their sound perfectly together. So even if I don't fully understand how the soundsystem works, it does for certain apps.
My scripts are like unprepared food, exchanged for this simple textscript until I get the sound to work.
/home/sander/.xbmc/scripts/My Scripts/Arcade Browser/default.pyCode:
import os
os.system('start.sh')
/home/sander/.xbmc/scripts/My Scripts/Arcade Browser/start.shCode:
pidof xbmc.bin|xargs kill # Shutdown
sleep 1
# Launch zsnes with a rom just to check sound
aoss zsnes -ad sdl -m /usr/local/emulators/SNES/ROMs/Super\ Mario\ Kart\ \(U\)\ \[\!\].smc
# Done? Restart XBMC
aoss xbmc
aoss or not, sound won't work in 'chained' programs. And thanks for the offer, but I'm not sure if finding out if the SB Live does the mixing will help me or not. I do think the output might be of some help if I start xbmc through a console:
Code:
sander@MC-RED:~$ [b]xbmc[/b]
The XBMC_HOME environment variable is not set. [color=red]# ??[/color]
The XBMC_HOME environment variable is not set.
25890 [color=red]#pidof xbmc.bin[/color]
Killed
sander@MC-RED:~$ ZSNES v1.51, (c) 1997-2007, ZSNES Team
[color=red]# zsnes blah blah (...)[/color]
File opened successfully !
ALSA lib pcm_dmix.c:874:(snd_pcm_dmix_open) unable to open slave [color=red]# hmmm..[/color]
ZSNES could not find any joysticks.
The XBMC_HOME environment variable is not set.
The XBMC_HOME environment variable is not set.
ALSA lib pcm_dmix.c:874:(snd_pcm_dmix_open) unable to open slave [color=red]# and here's why this time xbmc has no sound either[/color]
/home/sander/.xbmc/scripts/Arcade Browser/start.sh: line 7: 25924 Segmentation fault aoss xbmc[color=red] # ?? - Weird but I think this error is irrelevant[/color]
I don't know what exactly happens when the ALSA slave fails to open, but I must say it's NOT obvious that it happens due to lack of hw mixing, because once again, SOME apps manage to do it, and I DO have alsa-oss and dmix installed. :confused2: