spandsp 3.0.0
oki_adpcm_state_s Struct Reference

#include <oki_adpcm.h>

Public Attributes

int bit_rate
 The bit rate - 24000 or 32000.
int16_t last
 The last state of the ADPCM algorithm.
int16_t step_index
 Current index into the step size table.
uint8_t oki_byte
 The compressed data byte in progress.
int16_t history [32]
 The signal history for the sample rate converter.
int ptr
 Pointer into the history buffer.
int mark
 Odd/even sample counter.
int phase
 Phase accumulator for the sample rate converter.

Detailed Description

Oki (Dialogic) ADPCM conversion state descriptor. This defines the state of a single working instance of the Oki ADPCM converter. This is used for either linear to ADPCM or ADPCM to linear conversion.

Member Data Documentation

◆ bit_rate

int oki_adpcm_state_s::bit_rate

The bit rate - 24000 or 32000.

Referenced by oki_adpcm_decode(), oki_adpcm_encode(), and oki_adpcm_init().

◆ history

int16_t oki_adpcm_state_s::history[32]

The signal history for the sample rate converter.

Referenced by oki_adpcm_decode(), and oki_adpcm_encode().

◆ mark

int oki_adpcm_state_s::mark

Odd/even sample counter.

Referenced by oki_adpcm_encode().

◆ oki_byte

uint8_t oki_adpcm_state_s::oki_byte

The compressed data byte in progress.

Referenced by oki_adpcm_encode().

◆ phase

int oki_adpcm_state_s::phase

Phase accumulator for the sample rate converter.

Referenced by oki_adpcm_decode(), and oki_adpcm_encode().

◆ ptr

int oki_adpcm_state_s::ptr

Pointer into the history buffer.

Referenced by oki_adpcm_decode(), and oki_adpcm_encode().


The documentation for this struct was generated from the following file: