Namespace LrSounds
This namespace provides functions for playing sounds.
Access the functions directly from the imported namespace.
Summary
Returns an array of system sounds that can be played via playSystemSound.
LrSounds.playSystemSound( systemSound )
Plays a system sound.
Functions
- LrSounds.getSystemSounds()
-
Returns an array of system sounds that can be played via playSystemSound. Each element in the array has a "title" attribute to identify it. The list of available sounds is platform-specific.
This function must be called from within an asynchronous task started using
LrTasks
.First supported in version 6.0 of the Lightroom SDK.
Return value
(table) Array of sounds. - LrSounds.playSystemSound( systemSound )
-
Plays a system sound.
This function must be called from within an asynchronous task started using
LrTasks
.First supported in version 6.0 of the Lightroom SDK.
Parameters
- 1. systemSound
- (object) One of the values returned by getSystemSounds.