view src/win32/WavWriter.h @ 8:08a8e09ca414

add files required by automake
author Robert McIntyre <rlm@mit.edu>
date Sat, 03 Mar 2012 10:54:39 -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 > 1000
5 #pragma once
6 #endif // _MSC_VER > 1000
8 // -*- C++ -*-
9 // WavWriter.h: interface for the WavWriter class.
10 //
12 #include <mmreg.h>
14 class WavWriter
15 {
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_)