]> git.saurik.com Git - wxWidgets.git/blame - include/wx/os2/sound.h
use iostream.h and not iostream with OpenWatcom (part of patch 910058)
[wxWidgets.git] / include / wx / os2 / sound.h
CommitLineData
0e320a79 1/////////////////////////////////////////////////////////////////////////////
bae90c4c
VS
2// Name: sound.h
3// Purpose: wxSound class (loads and plays short Windows .wav files).
0e320a79 4// Optional on non-Windows platforms.
d90895ac 5// Author: David Webster
0e320a79 6// Modified by:
d90895ac 7// Created: 10/17/99
0e320a79 8// RCS-ID: $Id$
d90895ac
DW
9// Copyright: (c) David Webster
10// Licence: wxWindows licence
0e320a79
DW
11/////////////////////////////////////////////////////////////////////////////
12
bae90c4c
VS
13#ifndef _WX_SOUND_H_
14#define _WX_SOUND_H_
0e320a79 15
0e320a79
DW
16#include "wx/object.h"
17
bae90c4c 18class wxSound : public wxSoundBase
0e320a79
DW
19{
20public:
bae90c4c
VS
21 wxSound();
22 wxSound(const wxString& fileName, bool isResource = FALSE);
23 wxSound(int size, const wxByte* data);
24 ~wxSound();
0e320a79
DW
25
26public:
d90895ac 27 // Create from resource or file
0e320a79 28 bool Create(const wxString& fileName, bool isResource = FALSE);
d90895ac
DW
29 // Create from data
30 bool Create(int size, const wxByte* data);
31
0e320a79 32 bool IsOk() const { return (m_waveData ? TRUE : FALSE); };
0e320a79
DW
33
34protected:
35 bool Free();
bae90c4c
VS
36
37 bool DoPlay(unsigned flags) const;
0e320a79
DW
38
39private:
d90895ac 40 wxByte* m_waveData;
0e320a79
DW
41 int m_waveLength;
42 bool m_isResource;
43};
44
45#endif
bae90c4c 46 // _WX_SOUND_H_