]> code.octet-stream.net Git - m17rt/blobdiff - m17app/src/error.rs
New Soundcard struct, use it in test programs
[m17rt] / m17app / src / error.rs
index f7079ca3ca8afe6cbe6a7e92c13285a91602760e..ee624f9257c9a873824cb475fd2f471268a629d0 100644 (file)
@@ -7,4 +7,10 @@ pub enum M17Error {
 
     #[error("given callsign is {0} characters long; maximum is 9")]
     CallsignTooLong(usize),
 
     #[error("given callsign is {0} characters long; maximum is 9")]
     CallsignTooLong(usize),
+
+    #[error("error during soundcard initialisation")]
+    SoundcardInit,
+
+    #[error("unable to locate sound card '{0}' - is it in use?")]
+    SoundcardNotFound(String),
 }
 }