rpxx.h
来自「Enc 压 缩 wav文件为 A16格式的 文件」· C头文件 代码 · 共 44 行
H
44 行
#include "wavestream.h"
#ifndef _RPXX_
#define _RPXX_
typedef struct tagFileHeaders {
uint mark; /* 4 0x00FF00FF */
char name[16]; /* 16 SUNPLUS SPEECH */
short type; /* 2 data type of this file */
short bits; /* 2 */
short ifS; /* 2 index sample rate */
short ifC; /* 2 index SCF-BANDEDGE */
short inp_vol; /* 2 */
short checksuml; /* 2 */
short checksumh; /* 2 */
char Class; /* 0 : RP20 ,1: RP14 */
char iA; /* 7 - 14 */
char TB; /* */
char reserve[11]; /* 11 */
} SpFile;
class crpxx:public cwavefile{
private:
SpFile head;
int adpcm;
int endcode;
int table;
int hardlimit;
public:
crpxx(waveinfo *i) : cwavefile(i){ };
~crpxx(){};
virtual int start_read();
virtual int start_write(uint format);
virtual void end_read();
virtual void end_write();
virtual int read(void* buffer,int samples);
};
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?