[][src]Function ev3dev_lang_rust::sound::get_volume

pub fn get_volume() -> Ev3Result<i32>

Gets the current sound volume by parsing the output of amixer get <channel>. It tries to determine the default channel by running amixer scontrols. If that fails as well, it uses the Playback channel, as that is the only channel on the EV3.