[−][src]Struct gba_hal::data::WaveInitRAMControl
Controls how the Wave RAM is accessed, and if the sound plays at all.
- 5: true, playback runs through both banks as a 64 digit loop. false, playback runs though just a single bank as a 32 digit loop.
- 6: true selects bank 1 for playback, false selects bank 0.
- 7: Wave sound is enabled.
Methods
impl WaveInitRAMControl
[src]
impl WaveInitRAMControl
[src]
pub const USE_BOTH_BANKS_BIT: u8
[src]
pub const fn use_both_banks(self) -> bool
[src]
pub const fn with_use_both_banks(self, bit: bool) -> Self
[src]
pub const USE_BANK_1_BIT: u8
[src]
pub const fn use_bank_1(self) -> bool
[src]
pub const fn with_use_bank_1(self, bit: bool) -> Self
[src]
pub const PLAYBACK_BIT: u8
[src]
pub const fn playback(self) -> bool
[src]
pub const fn with_playback(self, bit: bool) -> Self
[src]
Trait Implementations
impl PartialEq<WaveInitRAMControl> for WaveInitRAMControl
[src]
fn eq(&self, other: &WaveInitRAMControl) -> bool
[src]
fn ne(&self, other: &WaveInitRAMControl) -> bool
[src]
impl Eq for WaveInitRAMControl
[src]
impl Copy for WaveInitRAMControl
[src]
impl Debug for WaveInitRAMControl
[src]
impl Clone for WaveInitRAMControl
[src]
fn clone(&self) -> WaveInitRAMControl
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Default for WaveInitRAMControl
[src]
fn default() -> WaveInitRAMControl
[src]
Auto Trait Implementations
impl Send for WaveInitRAMControl
impl Sync for WaveInitRAMControl
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,