Mercurial > vba-linux
view src/win32/WavWriter.h @ 2:3549bbe597ed
adding makefile.am
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Sat, 03 Mar 2012 10:31:47 -0600 |
parents | f9f4f1b99eed |
children |
line wrap: on
line source
1 #if !defined(AFX_WAVWRITER_H__BE6C9DE9_60E7_4192_9797_8C7F55B3CE46__INCLUDED_)2 #define AFX_WAVWRITER_H__BE6C9DE9_60E7_4192_9797_8C7F55B3CE46__INCLUDED_4 #if _MSC_VER > 10005 #pragma once6 #endif // _MSC_VER > 10008 // -*- C++ -*-9 // WavWriter.h: interface for the WavWriter class.10 //12 #include <mmreg.h>14 class WavWriter15 {16 private:17 FILE *m_file;18 int m_len;19 long m_posSize;21 public:22 WavWriter();23 ~WavWriter();25 bool Open(const char *name);26 void SetFormat(const WAVEFORMATEX *format);27 void AddSound(const u8 *data, int len);29 private:30 void Close();31 };33 #endif // !defined(AFX_WAVWRITER_H__BE6C9DE9_60E7_4192_9797_8C7F55B3CE46__INCLUDED_)