media.getSoundVolume()

Type Function
Library media.*
Return value Number
Revision Current Public Release (2017.3068)
Keywords media, sound, volume, audio
See also media.playSound()
media.getSoundVolume()

Overview

Returns the current volume setting for playback of extended sounds (media.playSound()).

Syntax

media.getSoundVolume()

Example

local current_volume = media.getSoundVolume()
print( current_volume )