Function ears::listener::get_volume [] [src]

pub fn get_volume() -> f32

Get the global volume of the scene.

Return

The global volume of the scene between 0. and 1.

Example

let vol = listener::get_volume();
println!("Global volume: {}", vol);