Home
last modified time | relevance | path

Searched refs:pvox (Results 1 – 1 of 1) sorted by relevance

/third_party/libsnd/src/
Dvox_adpcm.c55 static int vox_read_block (SF_PRIVATE *psf, IMA_OKI_ADPCM *pvox, short *ptr, int len) ;
72 { IMA_OKI_ADPCM *pvox = NULL ; in vox_adpcm_init() local
80 if ((pvox = malloc (sizeof (IMA_OKI_ADPCM))) == NULL) in vox_adpcm_init()
83 psf->codec_data = (void*) pvox ; in vox_adpcm_init()
84 memset (pvox, 0, sizeof (IMA_OKI_ADPCM)) ; in vox_adpcm_init()
116 ima_oki_adpcm_init (pvox, IMA_OKI_ADPCM_TYPE_OKI) ; in vox_adpcm_init()
125 vox_read_block (SF_PRIVATE *psf, IMA_OKI_ADPCM *pvox, short *ptr, int len) in vox_read_block() argument
129 …{ pvox->code_count = (len - indx > IMA_OKI_ADPCM_PCM_LEN) ? IMA_OKI_ADPCM_CODE_LEN : (len - indx +… in vox_read_block()
131 if ((k = (int) psf_fread (pvox->codes, 1, pvox->code_count, psf)) != pvox->code_count) in vox_read_block()
133 psf_log_printf (psf, "*** Warning : short read (%d != %d).\n", k, pvox->code_count) ; in vox_read_block()
[all …]