Sounds
The Sounds node () contains a library of sound files (.wav files) that you can use in an application. The Settings window contains the following section.
List of Sounds
The list contains all sound files available for use in an application in the Name column. You can add an optional description in the Description column. A few sample sounds are always included. To add a sound file, click the button, which opens a file browser where you can select and add a sound to the list. Click any of the column headers to sort the list based on that column. There are three sorting modes: alphabetical, reverse alphabetical, and the original list order.
Use the Move Up (), Move Down (), and Delete () buttons to edit and arrange the list of sounds. Click the Preview button () to listen to the sound. Click the Replace File button () to select a new file to replace an existing entry in the table. The replace changes the file data only; the name of the entry remains unchanged. Click the Export Selected Sound File button () to save the selected sound file in the sound library to the file system.
You can use a sound to indicate some action connected to a button, for example. To play a sound when the application user clicks a button, connect the button to a method where you add a line of code. The method should call on the name of the sound file. For example, to play a sound from the file named success.wav, add the following line to the method: playSound("success");.