pub enum HandBack {
RestoreOriginal,
Keep,
}Expand description
What happens to the DAC’s hardware volume when the Dac is
closed.
The library records the level the DAC had the first time it read its volume control (before it wrote anything), keyed by the device. This decides what is done with that record on close.
Variants§
RestoreOriginal
Write the recorded original level back to every channel, verify it, and end the record. Use this when the DAC goes back to another audio stack (for example Android’s own USB audio driver).
Keep
Leave the DAC at its current level and keep the record, so a later
Dac::open of the same device in this process still
knows the true original level. Use this when the host takes the DAC
straight back.
Trait Implementations§
impl Copy for HandBack
impl Eq for HandBack
impl StructuralPartialEq for HandBack
Auto Trait Implementations§
impl Forget for HandBack
impl Freeze for HandBack
impl Move for HandBack
impl RefUnwindSafe for HandBack
impl Send for HandBack
impl Sync for HandBack
impl Unpin for HandBack
impl UnsafeUnpin for HandBack
impl UnwindSafe for HandBack
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more