comparison src/win32/WavWriter.h @ 1:f9f4f1b99eed

importing src directory
author Robert McIntyre <rlm@mit.edu>
date Sat, 03 Mar 2012 10:31:27 -0600
parents
children
comparison
equal deleted inserted replaced
0:8ced16adf2e1 1:f9f4f1b99eed
1 #if !defined(AFX_WAVWRITER_H__BE6C9DE9_60E7_4192_9797_8C7F55B3CE46__INCLUDED_)
2 #define AFX_WAVWRITER_H__BE6C9DE9_60E7_4192_9797_8C7F55B3CE46__INCLUDED_
3
4 #if _MSC_VER > 1000
5 #pragma once
6 #endif // _MSC_VER > 1000
7
8 // -*- C++ -*-
9 // WavWriter.h: interface for the WavWriter class.
10 //
11
12 #include <mmreg.h>
13
14 class WavWriter
15 {
16 private:
17 FILE *m_file;
18 int m_len;
19 long m_posSize;
20
21 public:
22 WavWriter();
23 ~WavWriter();
24
25 bool Open(const char *name);
26 void SetFormat(const WAVEFORMATEX *format);
27 void AddSound(const u8 *data, int len);
28
29 private:
30 void Close();
31 };
32
33 #endif // !defined(AFX_WAVWRITER_H__BE6C9DE9_60E7_4192_9797_8C7F55B3CE46__INCLUDED_)