⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 adpcm.2

📁 音频32Kbps ADPCM压缩算法源文件
💻 2
字号:
.TH ADPCM 2 "7 June 1992".SH NAMEadpcm - Adaptive delta compression for audio samples.B#include "adpcm.h".bradpcm_coder(short inbuf[], char outbuf[], int nsample,.br	struct adpcm_state *state);.bradpcm_decoder(char inbuf[], short outbuf[], int nsample,.br	struct adpcm_state *state);.SH DESCRIPTIONThese routine convert 16 bit linear PCM samples to 4 bit ADPCM codeand vice versa. The ADPCM code used is the Intel/DVI ADPCM code whichis being recommended by the IMA Digital Audio Technical Working Group..PP\fIAdpcm_coder\fP converts \fInsample\fP 16 bit samples from\fIinbuf\fP and stores the 4 bit codes, packed two per byte, in\fIoutbuf\fP. \fIState\fP points to a structure containing the coderstate information, a short and a char. It should be initialized tozero before the first call. The coder updates the state record, and itshould be passed to each subsequent call..PP\fIAdpcm_decoder\fP converts \fInsample\fP 4 bit codes from\fIinbuf\fP to 16 bit samples and stores these in \fPoutbuf\fP.\fIState\fP is a state record similar to that used by the coder..PPIf you compress audio to transmit it across a lossy network it is agood idea to send the compressor state along with each packet. (Thismust be the state as it was \fIbefore\fP the call to\fIadpcm_coder\fP, not the state after the return). This state recordcan then be fed to the decompressor. This way the decompressor cantolerate packet loss..SH NOTESThe routines have not been tested against an official Intel/DVI coderyet, so incompatabilities might exist..brThe state record is not byte-order-independent. Remember this whentransmitting it across the network..SH "SEE ALSO"Proposal for Standardized Audio Interchange Formats, IMA compatabilityproject proceedings, Vol 2, Issue 2, May 1992..SH AUTHORJack Jansen, CWI, Amsterdam.brJack.Jansen@cwi.nl

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -