Config sound menusound



How to get the menu sounds working on most systems

If your menu sounds don't work out of the box then it doesn't mean they'll never work - you just might need to do some tweaking.

Before you continue with this guide it's worth checking the site as some systems already have guides for getting the sounds working. However, in some cases the machine you're using hasn't been added yet so you'll need to build a custom asound.conf file. Here's an easy guide that will work for most boxes:

First download the add-on "Nano" from the OpenELEC repo inside XBMC (System > Addons > OpenELEC > Programs > nano). This is a useful text editor for use in a terminal (including SSH sessions). After installation, reboot your box.)

Next, SSH into your box. We need a log that contains detailed info about the possible output devices. Once you're logged in, type:

aplay -l

This will give a list of audio devices that are available in your box. Our sample system looks like this:

**** List of PLAYBACK Hardware Devices **** card 0: Generic [HD-Audio Generic], device 3: HDMI 0 [HDMI 0] Subdevices: 1/1 Subdevice #0: subdevice #0 card 1: SB [HDA ATI SB], device 0: STAC92xx Analog [STAC92xx Analog] Subdevices: 0/1 Subdevice #0: subdevice #0

As you can see, our system has an HDMI and Analog output. This can be different in your box, but it will show the data we need.

If you use a HDMI connection for your output, the line "card 0: Generic [HD-Audio Generic], device 3: HDMI 0 [HDMI 0]" is the only thing you need to know. If you want analog, the line containing "Analog" would be the one you need and so on. It is possible that there are multiple lines with the same output device (usually HDMI). These will be discussed later in this guide, but you will need to have them all. So you better write them down somewhere safe.

To start editing a new asound.conf file, type the following command:

nano /storage/.config/asound.conf

This will open an empty screen. Copy the text beneath in it:

pcm.!default { type plug slave { pcm "hw:x,y" rate 48000 } }

Now take your copied lines from the aplay command, and change the x and y in the line "pcm "hw:x,y"" with the following info:

Change x with the number after "card" (in this example for HDMI, "card 0") Change y with the number after "device" (in this example for HDMI, "device 3")

Press [CTRL]+x to save it; type yes, [Enter], [Enter] at the prompts.

Now reboot and see if it works!

If you had more than one output device listed, test all options as above to find out which works (it's trial and error unfortunately). For example: you have three lines all telling they are HDMI outputs but they differ in the device number. Start with the first output device, save the configuration like above and reboot. Test if you hear menu sounds. If not, open up a SSH connection again and now give the following command:

nano /storage/.config/asound.conf

Edit the card and device number so they match output device 2. Save it, reboot and test. Still not working? Change it again for output device number 3.

If the above does not work, try to remove the line "rate 48000" from the asound.conf file and reboot your system.

If it still doesn't work, make a new topic in the help section and tell us what you did. Also paste the output of the aplay -l output and give us enough details about your box, which build you're using and how you're connecting the audio to the TV / stereo.

If it does work, post it in the Supported Hardware section of the forums so we can add it to the site for other users to be able to see.

Category:Configuration