playLoudness

Typeproperty
DictionaryLCS
LibraryLiveCode Script
Syntax
set the playLoudness [of {<audioClip> | <player>}] to <percentage>
Summary

Specifies the volume of sounds played by the play command.

Introduced1.0
OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile
Example
set the playLoudness to 100 -- maximum loudness
set the playLoudness of audioclip ID 1054 to 50
Values
NameTypeDescription
Value

The playLoudness is an integer between zero and 100. By default, the playLoudness property is a number corresponding to the current system setting.

RelatedProperty: showController, leftBalance, rightBalance, audioPan
Command: play, beep
Function: recordLoudness
Object: player
Description

Use the playLoudness property to set the speaker volume.

Setting the playLoudness to zero turns off sounds.

If no audio clip, video clip, or player is specified, the setting of the playLoudness property applies to all sounds LiveCode makes, including those made with the beep and play commands.

Users can manually set the playLoudness of a player using the slider on the left side of the player's controller bar, which is visible if the player's showController property is true.

Tagsmultimedia