media.getSoundVolume()

Type Function
Library media.*
Return value Number
Revision 2017.3060
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 )