Trait rusty_chip8::Audio

source ·
pub trait Audio {
    fn start_beep(&mut self);
    fn stop_beep(&mut self);
}
Expand description

Audio abstraction for Chip8.

Clients are supposed to implement this trait in accordance with the sound library used.

Required Methods§

source

fn start_beep(&mut self)

Starts the beep sound.

source

fn stop_beep(&mut self)

Stops the beep sound.

Implementors§