pub struct MpeZone {
pub master_channel: u8,
pub member_low: u8,
pub member_high: u8,
}Expand description
An MPE zone: the master channel and the inclusive member-channel range.
Fields§
§master_channel: u8Master channel index (0 for the lower zone, 15 for the upper zone).
member_low: u8Lowest member channel index (inclusive).
member_high: u8Highest member channel index (inclusive).
Implementations§
Source§impl MpeZone
impl MpeZone
Sourcepub fn lower(member_count: u8) -> Result<Self, AudioError>
pub fn lower(member_count: u8) -> Result<Self, AudioError>
Build a lower zone: master = channel 1 (index 0), member_count
members counting up from channel 2 (index 1).
Errors if member_count is 0 or would exceed the 15 available member
channels.
Sourcepub fn upper(member_count: u8) -> Result<Self, AudioError>
pub fn upper(member_count: u8) -> Result<Self, AudioError>
Build an upper zone: master = channel 16 (index 15), member_count
members counting down from channel 15 (index 14).
Errors if member_count is 0 or would exceed the 15 available member
channels.
Sourcepub fn member_count(&self) -> u8
pub fn member_count(&self) -> u8
Number of member channels in the zone.
Trait Implementations§
impl Copy for MpeZone
impl Eq for MpeZone
impl StructuralPartialEq for MpeZone
Auto Trait Implementations§
impl Freeze for MpeZone
impl RefUnwindSafe for MpeZone
impl Send for MpeZone
impl Sync for MpeZone
impl Unpin for MpeZone
impl UnsafeUnpin for MpeZone
impl UnwindSafe for MpeZone
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