資源簡介
使用標準C++庫實現實現PCM格式的WAV文件的讀寫。
class CWaveFile
{
public:
CWaveFile(void);
~CWaveFile(void);
// Write wav head
bool static WriteHead(const string& filename, uint32_t length);
// Write wav file
bool static write(const string& filename, const Wave_header &header, void *data, uint32_t length);
// Read wav file
bool read(const string &filename);
private:
// Read wav file header
bool read_header(const string &filename);
private:
shared_ptr header;
unique_ptr data;
};

代碼片段和文件信息
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????2563??2018-08-06?21:20??wav文件讀寫接口實現.rar
-----------?---------??----------?-----??----
?????文件????????2563??2018-08-06?21:20??wav文件讀寫接口實現.rar
- 上一篇:學生學籍管理系統c語言實現
- 下一篇:ACM HDU 2000->2099 解題報告
評論
共有 條評論