1#[derive(Debug, thiserror::Error)]
3#[non_exhaustive]
4pub enum AudioError {
5 #[error("unsupported audio configuration: {0}")]
7 Unsupported(String),
8
9 #[error("input buffer length {got} bytes does not match expected {expected}")]
11 Misaligned { got: usize, expected: usize },
12
13 #[error("resample construction: {0}")]
15 ResamplerConstruction(#[from] rubato::ResamplerConstructionError),
16
17 #[error("resample: {0}")]
19 Resample(#[from] rubato::ResampleError),
20
21 #[error(transparent)]
23 Hang(#[from] hang::Error),
24
25 #[error(transparent)]
27 Mux(#[from] moq_mux::Error),
28
29 #[error(transparent)]
31 Moq(#[from] moq_net::Error),
32
33 #[error(transparent)]
35 TimeOverflow(#[from] moq_net::TimeOverflow),
36}