Sounds.xml: Difference between revisions
mNo edit summary |
No edit summary |
||
Line 34: | Line 34: | ||
An example | An example of a sounds addon can be found here: https://github.com/xbmc/xbmc/tree/master/addons/resource.uisounds.kodi | ||
[[Category:Skin_development]] | [[Category:Skin_development]] |
Revision as of 03:33, 12 July 2021
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 of a sounds addon can be found here: https://github.com/xbmc/xbmc/tree/master/addons/resource.uisounds.kodi