Skip to main content

playLoudness

Type​

property

Summary​

Specifies the volume of sounds played by the play command.

Syntax​

set the playLoudness [of {<audioClip> | <player>}] to <percentage>

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.

Examples​

set the playLoudness to 100 -- maximum loudness
set the playLoudness of audioclip ID 1054 to 50

Value​

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.

command: play, beep

function: recordLoudness

object: player

property: showController, leftBalance, rightBalance, audioPan

Compatibility and Support​

Introduced

LiveCode 1.0

OS

mac

windows

linux

ios

android

Platforms

desktop

server

mobile

Thank you for your feedback!

Was this page helpful?