Type Alias ctru_sys::ndspWaveBuf

source ·
pub type ndspWaveBuf = tag_ndspWaveBuf;
Expand description

Wave buffer type.

Aliased Type§

struct ndspWaveBuf {
    pub __bindgen_anon_1: tag_ndspWaveBuf__bindgen_ty_1,
    pub nsamples: u32,
    pub adpcm_data: *mut ndspAdpcmData,
    pub offset: u32,
    pub looping: bool,
    pub status: u8,
    pub sequence_id: u16,
    pub next: *mut tag_ndspWaveBuf,
}

Fields§

§__bindgen_anon_1: tag_ndspWaveBuf__bindgen_ty_1§nsamples: u32

< Total number of samples (PCM8=bytes, PCM16=halfwords, DSPADPCM=nibbles without frame headers)

§adpcm_data: *mut ndspAdpcmData

< ADPCM data.

§offset: u32

< Buffer offset. Only used for capture.

§looping: bool

< Whether to loop the buffer.

§status: u8

< Queuing/playback status.

§sequence_id: u16

< Sequence ID. Assigned automatically by ndspChnWaveBufAdd.

§next: *mut tag_ndspWaveBuf

< Next buffer to play. Used internally, do not modify.

Trait Implementations

source§

impl Clone for tag_ndspWaveBuf

source§

fn clone(&self) -> tag_ndspWaveBuf

Returns a copy of the value. Read more
1.0.0§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Default for tag_ndspWaveBuf

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Copy for tag_ndspWaveBuf