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.