[−][src]Struct gba_hal::data::StereoControl
Controls left and right sound outputs.
- 0-2: Master Right Volume
- 4-6: Master Left Volume
- 8: Pulse A right
- 9: Pulse B right
- 10: Wave right
- 11: Noise right
- 12: Pulse A left
- 13: Pulse B left
- 14: Wave left
- 15: Noise left
Methods
impl StereoControl[src]
impl StereoControl[src]
pub const VOLUME_RIGHT_MASK: u16[src]
pub const fn volume_right(self) -> u16[src]
pub const fn with_volume_right(self, volume_right: u16) -> Self[src]
pub const VOLUME_LEFT_MASK: u16[src]
pub const fn volume_left(self) -> u16[src]
pub const fn with_volume_left(self, volume_left: u16) -> Self[src]
pub const PULSE_A_RIGHT_BIT: u16[src]
pub const fn pulse_a_right(self) -> bool[src]
pub const fn with_pulse_a_right(self, bit: bool) -> Self[src]
pub const PULSE_B_RIGHT_BIT: u16[src]
pub const fn pulse_b_right(self) -> bool[src]
pub const fn with_pulse_b_right(self, bit: bool) -> Self[src]
pub const WAVE_RIGHT_BIT: u16[src]
pub const fn wave_right(self) -> bool[src]
pub const fn with_wave_right(self, bit: bool) -> Self[src]
pub const NOISE_RIGHT_BIT: u16[src]
pub const fn noise_right(self) -> bool[src]
pub const fn with_noise_right(self, bit: bool) -> Self[src]
pub const PULSE_A_LEFT_BIT: u16[src]
pub const fn pulse_a_left(self) -> bool[src]
pub const fn with_pulse_a_left(self, bit: bool) -> Self[src]
pub const PULSE_B_LEFT_BIT: u16[src]
pub const fn pulse_b_left(self) -> bool[src]
pub const fn with_pulse_b_left(self, bit: bool) -> Self[src]
pub const WAVE_LEFT_BIT: u16[src]
pub const fn wave_left(self) -> bool[src]
pub const fn with_wave_left(self, bit: bool) -> Self[src]
pub const NOISE_LEFT_BIT: u16[src]
pub const fn noise_left(self) -> bool[src]
pub const fn with_noise_left(self, bit: bool) -> Self[src]
Trait Implementations
impl PartialEq<StereoControl> for StereoControl[src]
fn eq(&self, other: &StereoControl) -> bool[src]
fn ne(&self, other: &StereoControl) -> bool[src]
impl Eq for StereoControl[src]
impl Debug for StereoControl[src]
impl Copy for StereoControl[src]
impl Clone for StereoControl[src]
fn clone(&self) -> StereoControl[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Default for StereoControl[src]
fn default() -> StereoControl[src]
Auto Trait Implementations
impl Send for StereoControl
impl Sync for StereoControl
Blanket Implementations
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> From<T> for T[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,