Struct steamy_controller::sound::Sound
[−]
[src]
pub struct Sound<'a, 'b: 'a> { /* fields omitted */ }
Methods
impl<'a, 'b> Sound<'a, 'b>
[src]
fn test(self, value: u8) -> Res<()>
Test a notification sound.
fn notification(self, on: u8, off: u8) -> Res<()>
Change the notification sound when turning on and off the device.
fn left(self) -> Self
Send the sound on the left channel.
fn right(self) -> Self
Send the sound on the right channel.
fn note(self, value: Note) -> Self
The note to reproduce.
Whether it's a sharp.
fn octave(self, value: u8) -> Self
The octave.
fn duration(self, value: Duration) -> Self
The duration of the note.
fn play(self) -> Res<()>
Play the note.
fn stop(self) -> Res<()>
Stop playing.