]> git.saurik.com Git - wxWidgets.git/blame - include/wx/msw/sound.h
trying to resolve GSocketManager API mess: the meaning of Install/Uninstall_Callback...
[wxWidgets.git] / include / wx / msw / sound.h
CommitLineData
2bda0e17 1/////////////////////////////////////////////////////////////////////////////
ddc5c471 2// Name: wx/msw/sound.h
bae90c4c 3// Purpose: wxSound class
2bda0e17
KB
4// Author: Julian Smart
5// Modified by:
6// Created: 01/02/97
7// RCS-ID: $Id$
bbcdf8bc 8// Copyright: (c) Julian Smart
57f4f925 9// Licence: wxWindows licence
2bda0e17
KB
10/////////////////////////////////////////////////////////////////////////////
11
bae90c4c
VS
12#ifndef _WX_SOUND_H_
13#define _WX_SOUND_H_
2bda0e17 14
bae90c4c 15#if wxUSE_SOUND
ea37d858 16
bae90c4c 17class WXDLLIMPEXP_ADV wxSound : public wxSoundBase
2bda0e17
KB
18{
19public:
ddc5c471
VZ
20 wxSound();
21 wxSound(const wxString& fileName, bool isResource = false);
22 wxSound(int size, const wxByte* data);
23 virtual ~wxSound();
2bda0e17 24
ddc5c471
VZ
25 // Create from resource or file
26 bool Create(const wxString& fileName, bool isResource = false);
321db4b6 27
ddc5c471
VZ
28 // Create from data
29 bool Create(int size, const wxByte* data);
57f4f925 30
ddc5c471
VZ
31 bool IsOk() const { return m_data != NULL; }
32
33 static void Stop();
2bda0e17
KB
34
35protected:
ddc5c471
VZ
36 void Init() { m_data = NULL; }
37 bool CheckCreatedOk();
38 void Free();
57f4f925 39
ddc5c471 40 virtual bool DoPlay(unsigned flags) const;
2bda0e17
KB
41
42private:
ddc5c471
VZ
43 // data of this object
44 class wxSoundData *m_data;
22f3361e 45
bae90c4c 46 DECLARE_NO_COPY_CLASS(wxSound)
2bda0e17 47};
ddc5c471
VZ
48
49#endif // wxUSE_SOUND
50
51#endif // _WX_SOUND_H_
2bda0e17 52