use thiserror::Error;
#[derive(Debug, Error, Clone, PartialEq, Eq)]
pub enum SoundRenderError {
#[error("sample rate must be positive")]
InvalidSampleRate,
#[error("renderer only supports mono or stereo output")]
InvalidChannelCount,
#[error("audio buffer too large to encode")]
BufferTooLarge,
}