]> git.saurik.com Git - wxWidgets.git/blame - include/wx/motif/wave.h
move wxApp::GetStdIcon to wxArtProvider
[wxWidgets.git] / include / wx / motif / wave.h
CommitLineData
9b6dbb09
JS
1/////////////////////////////////////////////////////////////////////////////
2// Name: wave.h
3// Purpose: wxWave class (loads and plays short Windows .wav files).
4// Optional on non-Windows platforms.
5// Author: Julian Smart
6// Modified by:
7// Created: 17/09/98
8// RCS-ID: $Id$
9// Copyright: (c) Julian Smart
10// Licence: wxWindows licence
11/////////////////////////////////////////////////////////////////////////////
12
13#ifndef _WX_WAVE_H_
14#define _WX_WAVE_H_
15
16#ifdef __GNUG__
17#pragma interface "wave.h"
18#endif
19
20#include "wx/object.h"
21
22class wxWave : public wxObject
23{
24public:
83df96d6
JS
25 wxWave();
26 wxWave(const wxString& fileName, bool isResource = FALSE);
27 ~wxWave();
28
9b6dbb09 29public:
83df96d6
JS
30 bool Create(const wxString& fileName, bool isResource = FALSE);
31 bool IsOk() const { return (m_waveData ? TRUE : FALSE); };
32 bool Play(bool async = TRUE, bool looped = FALSE) const;
33
9b6dbb09 34protected:
83df96d6
JS
35 bool Free();
36
9b6dbb09 37private:
83df96d6
JS
38 char* m_waveData;
39 int m_waveLength;
40 bool m_isResource;
9b6dbb09
JS
41};
42
43#endif
83df96d6 44// _WX_WAVE_H_