Mercurial > vba-linux
annotate 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 |
rev | line source |
---|---|
rlm@1 | 1 #if !defined(AFX_WAVWRITER_H__BE6C9DE9_60E7_4192_9797_8C7F55B3CE46__INCLUDED_) |
rlm@1 | 2 #define AFX_WAVWRITER_H__BE6C9DE9_60E7_4192_9797_8C7F55B3CE46__INCLUDED_ |
rlm@1 | 3 |
rlm@1 | 4 #if _MSC_VER > 1000 |
rlm@1 | 5 #pragma once |
rlm@1 | 6 #endif // _MSC_VER > 1000 |
rlm@1 | 7 |
rlm@1 | 8 // -*- C++ -*- |
rlm@1 | 9 // WavWriter.h: interface for the WavWriter class. |
rlm@1 | 10 // |
rlm@1 | 11 |
rlm@1 | 12 #include <mmreg.h> |
rlm@1 | 13 |
rlm@1 | 14 class WavWriter |
rlm@1 | 15 { |
rlm@1 | 16 private: |
rlm@1 | 17 FILE *m_file; |
rlm@1 | 18 int m_len; |
rlm@1 | 19 long m_posSize; |
rlm@1 | 20 |
rlm@1 | 21 public: |
rlm@1 | 22 WavWriter(); |
rlm@1 | 23 ~WavWriter(); |
rlm@1 | 24 |
rlm@1 | 25 bool Open(const char *name); |
rlm@1 | 26 void SetFormat(const WAVEFORMATEX *format); |
rlm@1 | 27 void AddSound(const u8 *data, int len); |
rlm@1 | 28 |
rlm@1 | 29 private: |
rlm@1 | 30 void Close(); |
rlm@1 | 31 }; |
rlm@1 | 32 |
rlm@1 | 33 #endif // !defined(AFX_WAVWRITER_H__BE6C9DE9_60E7_4192_9797_8C7F55B3CE46__INCLUDED_) |