AudioHandle

Trait AudioHandle 

Source
pub trait AudioHandle {
    // Required methods
    fn set_volume(&self, volume: f32);
    fn volume(&self) -> f32;
    fn pause(&self);
    fn play(&self);
    fn background(self);
}

Required Methods§

Source

fn set_volume(&self, volume: f32)

Source

fn volume(&self) -> f32

Source

fn pause(&self)

Source

fn play(&self)

Source

fn background(self)

Implementations on Foreign Types§

Source§

impl<H: AudioHandle> AudioHandle for Option<H>

Source§

fn set_volume(&self, volume: f32)

Source§

fn volume(&self) -> f32

Source§

fn pause(&self)

Source§

fn play(&self)

Source§

fn background(self)

Implementors§