delete
Reply
peter10000 Wrote:The sound problem can be solved very easy.
I have tried many nights and after some testinstallations with XBMC-Live and full ubuntu I found a workaround for the pulseaudio problem.
The basic problems is a conflict between the pulseaudio settings from the ubuntu desktop and the management from XBMC. That makes it impossible to use HDMI output in ubuntu and parallel HDMI output for audio and video in XBMC.
The solution is to disable pulseaudio while XBMC is running - so it works then in the same operation mode as a XBMC-Live system.
1. Install and configure Ubuntu 10.04
2. Install XBMC
3. Configure Sound in Ubuntu => Hardware is "Digital Stereo (HDMI)..."
4. Create a file /home/.pulse/client.conf with the content "autospawn = no"
5. Reboot
6. Create a script for launching XBMC like "start.sh" and set the executable flag. Content of the file is:
pulseaudio --start
xbmc
pulseaudio --start
7. Use that script for launching XBMC. Pulseaudio is deactivated before starting XBMC and activated after finishing XBMC.
8. Configure audio outputs in XBMC to HDMI in all sections.
BoxFreak Wrote:Does this work in live, and is there something that should be done differently then?
[LIST]
[*]sudo rm /etc/asound.conf
[*]sudo rm /usr/share/alsa/cards/HDA-Intel.conf
[*]sudo wget http://pastebin.com/download.php?i=f5f9654bb -O /etc/asound.conf
[*]sudo wget http://pastebin.com/download.php?i=f2e38265 -O /usr/share/alsa/cards/HDA-Intel.conf
[*]sudo reboot
[/LIST]
pcm.dmixer {
type dmix
ipc_key 1024
ipc_key_add_uid false
ipc_perm 0660
slave {
pcm "hw:0,3"
rate 48000
channels 2
period_time 0
period_size 1024
buffer_time 0
buffer_size 4096
}
}
pcm.!default {
type plug
slave.pcm "dmixer"
}
pcm.!hdmi-remap {
type asym
playback.pcm {
type plug
slave.pcm "remap-surround71"
}
}
pcm.!remap-surround71 {
type route
slave.pcm "hw:0,3"
ttable {
0.0= 1
1.1= 1
2.4= 1
3.5= 1
4.2= 1
5.3= 1
6.6= 1
7.7= 1
}
}
Flomaster Wrote:do you not get hdmi audio in live?...
-=Jason=-
BoxFreak Wrote:My sound works fine apart from navigation sounds and sound on video´s that have sample rate under 44100hz. Just thought that maybe pulseaudio is messing things up? Using ION2 and HDMI-out.
peter10000 Wrote:Correct Code is:
...
6. Create a script for launching XBMC like "start.sh" and set the executable flag. Content of the file is:
pulseaudio -k <<<<=======
xbmc
pulseaudio --start
-k => stops pulseaudio
It could be neccesary to take "pulseaudio --start" into autostart to get OS based sound-support when booting up.
Flomaster Wrote:do you not get hdmi audio in live?
type in
alsamixer
make sure your hdmi spdif are not muted on the far right.
http://forum.xbmc.org/showpost.php?p=587...tcount=290
then copy and paste these lines of code
Code:[LIST]
[*]sudo rm /etc/asound.conf
[*]sudo rm /usr/share/alsa/cards/HDA-Intel.conf
[*]sudo wget http://pastebin.com/download.php?i=f5f9654bb -O /etc/asound.conf
[*]sudo wget http://pastebin.com/download.php?i=f2e38265 -O /usr/share/alsa/cards/HDA-Intel.conf
[*]sudo reboot
[/LIST]
also if you have a Ion 330 with Nvidia GPU you can use this
.asoundrc
file it works perfectly for me
Code:pcm.dmixer {
type dmix
ipc_key 1024
ipc_key_add_uid false
ipc_perm 0660
slave {
pcm "hw:0,3"
rate 48000
channels 2
period_time 0
period_size 1024
buffer_time 0
buffer_size 4096
}
}
pcm.!default {
type plug
slave.pcm "dmixer"
}
pcm.!hdmi-remap {
type asym
playback.pcm {
type plug
slave.pcm "remap-surround71"
}
}
pcm.!remap-surround71 {
type route
slave.pcm "hw:0,3"
ttable {
0.0= 1
1.1= 1
2.4= 1
3.5= 1
4.2= 1
5.3= 1
6.6= 1
7.7= 1
}
}
use these settings in xbmc
the perfect asound.conf http://flomaster.pastebin.com/HQtibwZ4
Audio Output: HDMI
Audio Output Device:HDMI
Passthrough: plughw:0,3
and if I want to get stereo sound to my zone two for backyard music I change to
Audio Output: plughw:0,0 and I get analog audio out of my green headphone jack.
my AAC tracks play on the correct channels.
mp3 audio is correct
DTS and Dolby Digital play as should.
all emulators play sound using this setup.
-=Jason=-
alanwww1 Wrote:Code:sudo wget http://pastebin.com/pastebin.php?dl=f5f9654bb -O /etc/asound.conf
sudo dos2unix /etc/asound.conf