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

📄 rpxx.h

📁 Enc 压 缩 wav文件为 A16格式的 文件
💻 H
字号:

#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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -