]>
code.octet-stream.net Git - m17rt/blob - m17codec2/src/error.rs
7fa6583f1f3af20521d5895829a7bfcef30af7ef
3 #[derive(Debug, Error)]
4 pub enum M17Codec2Error
{
5 #[error("tried to start adapter more than once")]
8 #[error("selected card '{0}' does not exist or is in use")]
9 CardUnavailable(String
),
11 #[error("default output card is unavailable")]
12 DefaultCardUnavailable
,
14 #[error("selected card '{0}' failed to list available output configs: '{1}'")]
15 OutputConfigsUnavailable(String
, #[source] cpal::SupportedStreamConfigsError),
17 #[error("selected card '{0}' did not offer a compatible output config type, either due to hardware limitations or because it is currently in use")]
18 SupportedOutputUnavailable(String
),
20 #[error("selected card '{0}' was unable to build an output stream: '{1}'")]
21 OutputStreamBuildError(String
, #[source] cpal::BuildStreamError),
23 #[error("selected card '{0}' was unable to play an output stream: '{1}'")]
24 OutputStreamPlayError(String
, #[source] cpal::PlayStreamError),
26 #[error("selected card '{0}' failed to list available input configs: '{1}'")]
27 InputConfigsUnavailable(String
, #[source] cpal::SupportedStreamConfigsError),
29 #[error("selected card '{0}' did not offer a compatible input config type, either due to hardware limitations or because it is currently in use")]
30 SupportedInputUnavailable(String
),
32 #[error("selected card '{0}' was unable to build an input stream: '{1}'")]
33 InputStreamBuildError(String
, #[source] cpal::BuildStreamError),
35 #[error("selected card '{0}' was unable to play an input stream: '{1}'")]
36 InputStreamPlayError(String
, #[source] cpal::PlayStreamError),