Sounds.xml: Difference between revisions

From Official Kodi Wiki
Jump to navigation Jump to search
(Created page with "This file contains the mapping of actions to sounds The <actions> section contains global mapping To map an action to a sound, add a block like this to <actions>: <actio...")
 
No edit summary
Line 1: Line 1:
This file contains the mapping of actions to sounds
This skin file contains the mapping of actions to sounds


The <actions> section contains global mapping
The <actions> section contains global mapping

Revision as of 22:50, 25 November 2014

This skin file contains the mapping of actions to sounds

The <actions> section contains global mapping

To map an action to a sound, add a block like this to <actions>:

   <action>
     <name>left</name>
     <file>cursor.wav</file>
   </action>

Where <name> specifies the action to map a sound to and <file> the wav file to play when the action occurs.

Valid entries for <name> can be found at

http://kodi.wiki/index.php?title=Action_IDs

Also window specific sound can be played

To map a sound to a window, add a block like this to <windows>:

   <window>
     <name>infodialog</name>
     <activate>notify.wav</activate>
     <deactivate>out.wav</deactivate>
   </window>

Where <name> specifies the window to map a sound to <activate> and <deactivate> are the events a sound can be mapped to by setting the file to play.

Valid entries for <name> can be found at

http://kodi.wiki/index.php?title=Window_IDs

Note: Custom skin files may be used, use windows id in this case

Note: Only wav files are supported.