]> git.saurik.com Git - wxWidgets.git/blame - utils/wxMMedia/wave.h
egcs compilation fix
[wxWidgets.git] / utils / wxMMedia / wave.h
CommitLineData
4d6306eb
GL
1/////////////////////////////////////////////////////////////////////////////
2// Name: wave.h
3// Purpose: wxWave class
4// Author: Julian Smart
5// Modified by: Guilhem Lavaux for wxMMedia (02/05/1998)
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
17#endif
18
19#include <wx/object.h>
20#include <wx/string.h>
21#include "sndwav.h"
22
23class wxWave : public wxObject
24{
25public:
26 wxWave();
27 wxWave(const wxString& fileName, bool isResource = FALSE);
28 ~wxWave();
29
30public:
31 bool Create(const wxString& sFileName, bool isResource = FALSE);
32 bool IsOk() const { return (m_wave ? TRUE : FALSE); };
33 bool Play(bool async = TRUE, bool looped = FALSE) const;
34
35protected:
36 bool Free();
37
38protected:
39 wxInputStream *m_iowave;
40 wxSndWavCodec *m_wave;
41};
42
43#endif