Function ears::listener::set_volume [] [src]

pub fn set_volume(volume: f32)

Set the global volume of the scene.

A value of 1.0 means unattenuated. Each division by 2 equals an attenuation of about -6dB. Each multiplicaton by 2 equals an amplification of about +6dB.

Argument

Example

listener::set_volume(0.7f32);