nn::snd::CTR::AdpcmContext

nn::snd::CTR::AdpcmContext Structure

Syntax

struct AdpcmContext
{
u16 pred_scale;
s16 yn1;
s16 yn2;
};

Description

A structure that stores an ADPCM context.

Member Variables

pred_scale u16 Stores the (4-bit) predictor and (4-bit) scale ADPCM values. The upper 8 bits are not accessed.
yn1 s16 Past data (the previous sample).
yn2 s16 Past data (the sample before the previous sample).

Revision History

2010/02/02
Initial version.

CONFIDENTIAL