diff 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
line wrap: on
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/win32/WavWriter.h	Sat Mar 03 10:31:27 2012 -0600
     1.3 @@ -0,0 +1,33 @@
     1.4 +#if !defined(AFX_WAVWRITER_H__BE6C9DE9_60E7_4192_9797_8C7F55B3CE46__INCLUDED_)
     1.5 +#define AFX_WAVWRITER_H__BE6C9DE9_60E7_4192_9797_8C7F55B3CE46__INCLUDED_
     1.6 +
     1.7 +#if _MSC_VER > 1000
     1.8 +#pragma once
     1.9 +#endif // _MSC_VER > 1000
    1.10 +
    1.11 +// -*- C++ -*-
    1.12 +// WavWriter.h: interface for the WavWriter class.
    1.13 +//
    1.14 +
    1.15 +#include <mmreg.h>
    1.16 +
    1.17 +class WavWriter  
    1.18 +{
    1.19 + private:
    1.20 +  FILE *m_file;
    1.21 +  int m_len;
    1.22 +  long m_posSize;
    1.23 +
    1.24 + public:
    1.25 +  WavWriter();
    1.26 +  ~WavWriter();
    1.27 +
    1.28 +  bool Open(const char *name);
    1.29 +  void SetFormat(const WAVEFORMATEX *format);
    1.30 +  void AddSound(const u8 *data, int len);
    1.31 +
    1.32 + private:
    1.33 +  void Close();
    1.34 +};
    1.35 +
    1.36 +#endif // !defined(AFX_WAVWRITER_H__BE6C9DE9_60E7_4192_9797_8C7F55B3CE46__INCLUDED_)