]> git.saurik.com Git - wxWidgets.git/blame - include/wx/msw/wave.h
Added and corrected a few more html makefiles,
[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$
bbcdf8bc
JS
8// Copyright: (c) Julian Smart
9// Licence: wxWindows licence
2bda0e17
KB
10/////////////////////////////////////////////////////////////////////////////
11
bbcdf8bc
JS
12#ifndef _WX_WAVE_H_
13#define _WX_WAVE_H_
2bda0e17
KB
14
15#ifdef __GNUG__
16#pragma interface "wave.h"
17#endif
18
ee4f8c2a 19#include "wx/object.h"
2bda0e17 20
df1eb533 21class WXDLLEXPORT wxWave : public wxObject
2bda0e17
KB
22{
23public:
ee4f8c2a 24 wxWave();
2bda0e17 25 wxWave(const wxString& fileName, bool isResource = FALSE);
57c208c5 26 wxWave(int size, const wxByte* data);
ee4f8c2a 27 ~wxWave();
2bda0e17
KB
28
29public:
321db4b6 30 // Create from resource or file
ee4f8c2a 31 bool Create(const wxString& fileName, bool isResource = FALSE);
321db4b6 32 // Create from data
57c208c5 33 bool Create(int size, const wxByte* data);
321db4b6 34
ee4f8c2a 35 bool IsOk() const { return (m_waveData ? TRUE : FALSE); };
2bda0e17
KB
36 bool Play(bool async = TRUE, bool looped = FALSE) const;
37
38protected:
ee4f8c2a 39 bool Free();
2bda0e17
KB
40
41private:
57c208c5 42 wxByte* m_waveData;
2bda0e17
KB
43 int m_waveLength;
44 bool m_isResource;
45};
46
47#endif
48