Sounds.xml: Difference between revisions
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
'''As of Kodi 15.0 Isengard this file is part of a ui sounds addon and contains the mapping of actions to sounds''' | |||
The <actions> section contains global mapping | The <actions> section contains global mapping | ||
Line 32: | Line 32: | ||
Note: Only wav files are supported. | Note: Only wav files are supported. | ||
An example od a sounds addon can be found here: https://github.com/xbmc/xbmc/tree/master/addons/resource.uisounds.confluence |
Revision as of 21:31, 24 April 2015
As of Kodi 15.0 Isengard this file is part of a ui sounds addon and 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.
An example od a sounds addon can be found here: https://github.com/xbmc/xbmc/tree/master/addons/resource.uisounds.confluence