#[derive(Debug, Error)]
pub enum M17Codec2Error {
+ #[error("tried to start adapter more than once")]
+ RepeatStart,
+
#[error("selected card '{0}' does not exist or is in use")]
CardUnavailable(String),
#[error("selected card '{0}' was unable to play an output stream: '{1}'")]
OutputStreamPlayError(String, #[source] cpal::PlayStreamError),
+
+ #[error("selected card '{0}' failed to list available input configs: '{1}'")]
+ InputConfigsUnavailable(String, #[source] cpal::SupportedStreamConfigsError),
+
+ #[error("selected card '{0}' did not offer a compatible input config type, either due to hardware limitations or because it is currently in use")]
+ SupportedInputUnavailable(String),
+
+ #[error("selected card '{0}' was unable to build an input stream: '{1}'")]
+ InputStreamBuildError(String, #[source] cpal::BuildStreamError),
+
+ #[error("selected card '{0}' was unable to play an input stream: '{1}'")]
+ InputStreamPlayError(String, #[source] cpal::PlayStreamError),
}