Struct alsa::Ctl
[−]
[src]
pub struct Ctl(_);
snd_ctl_t wrapper
Methods
impl Ctl
[src]
fn new(c: &str, nonblock: bool) -> Result<Self>
[src]
Wrapper around open that takes a &str instead of a &CStr
fn open(c: &CStr, nonblock: bool) -> Result<Ctl>
[src]
Open does not support async mode (it's not very Rustic anyway)
fn from_card(c: &Card, nonblock: bool) -> Result<Ctl>
[src]
fn card_info(&self) -> Result<CardInfo>
[src]
fn wait(&self, timeout_ms: Option<u32>) -> Result<bool>
[src]
fn get_db_range(&self, id: &ElemId) -> Result<(MilliBel, MilliBel)>
[src]
fn convert_to_db(&self, id: &ElemId, volume: i64) -> Result<MilliBel>
[src]
fn convert_from_db(&self, id: &ElemId, mb: MilliBel, dir: Round) -> Result<i64>
[src]
fn subscribe_events(&self, subscribe: bool) -> Result<()>
[src]
Note: According to alsa-lib documentation, you're also supposed to have functionality for returning whether or not you are subscribed. This does not work in practice, so I'm not including that here.