Struct synthizer::Context [−][src]
pub struct Context(_);
Expand description
The Context
represents an audio device.
Implementations
Get any pending events. The returned iterator will not block, and
iterates over any pending events until the first error. This is lazy:
to limit the number of events received, use .take
.
pub fn config_route(
&self,
output: &dyn RouteOutput,
input: &dyn RouteInput,
config: &RouteConfig
) -> Result<()>
pub fn config_route_simple(
&self,
output: &dyn RouteOutput,
input: &dyn RouteInput
) -> Result<()>
pub fn config_route_simple(
&self,
output: &dyn RouteOutput,
input: &dyn RouteInput
) -> Result<()>
Configure a route with the default settings.
pub fn remove_route(
&self,
output: &dyn RouteOutput,
input: &dyn RouteInput,
fade_out: f64
) -> Result<()>
Try to cast this object to another object type. Will return
Ok(None)
if this is because of a type mismatch, otherwise Err
.
Clones self
on success in order to prevent throwing the object
away on error.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Context
impl UnwindSafe for Context
Blanket Implementations
Mutably borrows from an owned value. Read more