]> git.saurik.com Git - wxWidgets.git/blame_incremental - include/wx/msw/wave.h
2 step creation for wxDocMDIChildFrame (patch 661657)
[wxWidgets.git] / include / wx / msw / wave.h
... / ...
CommitLineData
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
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_WAVE_H_
13#define _WX_WAVE_H_
14
15#ifdef __GNUG__
16#pragma interface "wave.h"
17#endif
18
19#if wxUSE_WAVE
20
21#include "wx/object.h"
22
23class WXDLLEXPORT wxWave : public wxObject
24{
25public:
26 wxWave();
27 wxWave(const wxString& fileName, bool isResource = FALSE);
28 wxWave(int size, const wxByte* data);
29 ~wxWave();
30
31public:
32 // Create from resource or file
33 bool Create(const wxString& fileName, bool isResource = FALSE);
34 // Create from data
35 bool Create(int size, const wxByte* data);
36
37 bool IsOk() const { return (m_waveData ? TRUE : FALSE); };
38 bool Play(bool async = TRUE, bool looped = FALSE) const;
39
40protected:
41 bool Free();
42
43private:
44 wxByte* m_waveData;
45 int m_waveLength;
46 bool m_isResource;
47
48 DECLARE_NO_COPY_CLASS(wxWave)
49};
50#endif
51#endif
52