Home
last modified time | relevance | path

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

/third_party/libsnd/src/
Dms_adpcm.c524 errordelta, newsamp ; in msadpcm_encode_block() local
551 newsamp = predict + (idelta [0] * errordelta) ; in msadpcm_encode_block()
552 if (newsamp > 32767) in msadpcm_encode_block()
553 newsamp = 32767 ; in msadpcm_encode_block()
554 else if (newsamp < -32768) in msadpcm_encode_block()
555 newsamp = -32768 ; in msadpcm_encode_block()
568 pms->samples [k] = newsamp ; in msadpcm_encode_block()
606 newsamp = predict + (idelta [chan] * errordelta) ; in msadpcm_encode_block()
607 if (newsamp > 32767) in msadpcm_encode_block()
608 newsamp = 32767 ; in msadpcm_encode_block()
[all …]