Skip to content

Commit b63ffbd

Browse files
authored
Added to function to get card number from seq Client (#146)
1 parent bccc2f2 commit b63ffbd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/seq.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,10 @@ impl ClientInfo {
275275
let c = unsafe { alsa::snd_seq_client_info_get_name(self.0) };
276276
from_const("snd_seq_client_info_get_name", c)
277277
}
278+
279+
pub fn get_card(&self) -> Result<i32> {
280+
acheck!(snd_seq_client_info_get_card(self.0))
281+
}
278282
}
279283

280284
impl fmt::Debug for ClientInfo {

0 commit comments

Comments
 (0)