]> git.saurik.com Git - wxWidgets.git/blame - include/wx/msw/wave.h
stray #include "wincmn.cpp" removed
[wxWidgets.git] / include / wx / msw / wave.h
CommitLineData
2bda0e17
KB
1/////////////////////////////////////////////////////////////////////////////
2// Name: wave.h
3// Purpose: wxWave class
4// Author: Julian Smart
5// Modified by:
6// Created: 01/02/97
7// RCS-ID: $Id$
8// Copyright: (c) Julian Smart and Markus Holzem
9// Licence: wxWindows license
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef __WAVEH__
13#define __WAVEH__
14
15#ifdef __GNUG__
16#pragma interface "wave.h"
17#endif
18
ee4f8c2a 19#include "wx/object.h"
2bda0e17
KB
20
21class wxWave : public wxObject
22{
23public:
ee4f8c2a 24 wxWave();
2bda0e17 25 wxWave(const wxString& fileName, bool isResource = FALSE);
ee4f8c2a 26 ~wxWave();
2bda0e17
KB
27
28public:
ee4f8c2a
JS
29 bool Create(const wxString& fileName, bool isResource = FALSE);
30 bool IsOk() const { return (m_waveData ? TRUE : FALSE); };
2bda0e17
KB
31 bool Play(bool async = TRUE, bool looped = FALSE) const;
32
33protected:
ee4f8c2a 34 bool Free();
2bda0e17
KB
35
36private:
37 byte* m_waveData;
38 int m_waveLength;
39 bool m_isResource;
40};
41
42#endif
43