Get current volume

current_volume  

Returns the current volume.

This can be set via the fn set_volume!.

Introduced in v2.0

Examples

# Example 1

puts current_volume



# Print out the current volume



# Example 2

set_volume! 2
puts current_volume



 
#=> 2