get_volume

Function get_volume 

Source
pub fn get_volume() -> Ev3Result<i32>
Expand description

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.