device 0.0.4

A generative engine
1
2
3
4
5
6
7
8
9
10
11
12
13
use super::*;

#[derive(Clone, Copy, PartialEq)]
pub(crate) struct SoundFormat {
  pub(crate) channels: u16,
  pub(crate) sample_rate: u32,
}

impl Display for SoundFormat {
  fn fmt(&self, f: &mut Formatter) -> fmt::Result {
    write!(f, "{}x{}", self.channels, self.sample_rate)
  }
}