Struct goxlr_daemon::audio::AudioHandler
source · [−]pub struct AudioHandler {
script_path: PathBuf,
output_device: String,
input_device: Option<String>,
active_streams: HashMap<SampleButtons, Child>,
}
Fields
script_path: PathBuf
output_device: String
input_device: Option<String>
active_streams: HashMap<SampleButtons, Child>
Implementations
sourceimpl AudioHandler
impl AudioHandler
pub fn new() -> Result<Self>
pub fn check_playing(&mut self)
pub fn is_sample_playing(&self, button: SampleButtons) -> bool
fn get_script(&self) -> &str
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for AudioHandler
impl Send for AudioHandler
impl Sync for AudioHandler
impl Unpin for AudioHandler
impl UnwindSafe for AudioHandler
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more