]> git.saurik.com Git - wxWidgets.git/blob - contrib/include/wx/mmedia/cdwin.h
Get the stock label when stock ID is used with empty label in Create()
[wxWidgets.git] / contrib / include / wx / mmedia / cdwin.h
1 // /////////////////////////////////////////////////////////////////////////////
2 // Name: cdwin.h
3 // Purpose: wxMMedia
4 // Author: Guilhem Lavaux
5 // Created: 1997
6 // Updated: 1998
7 // Copyright: (C) 1997, 1998, Guilhem Lavaux
8 // License: wxWindows license
9 // /////////////////////////////////////////////////////////////////////////////
10 #ifndef __CDA_win_H__
11 #define __CDA_win_H__
12
13 #ifdef __GNUG__
14 #pragma interface
15 #endif
16
17 #include "wx/wxprec.h"
18 #include "wx/mmedia/defs.h"
19 #include "cdbase.h"
20
21 #ifdef WXMMEDIA_INTERNAL
22 #include <windows.h>
23 #include <mmsystem.h>
24 typedef struct CDAW_Internal {
25 MCIDEVICEID dev_id;
26 } CDAW_Internal;
27 #endif
28
29 ///
30 class WXDLLIMPEXP_MMEDIA wxCDAudioWin : public wxCDAudio {
31 DECLARE_DYNAMIC_CLASS(wxCDAudioWin)
32 protected:
33 struct CDAW_Internal *m_internal;
34 wxCDtime *m_trksize, *m_trkpos;
35 CDtoc *m_toc;
36 bool m_ok;
37 public:
38 ///
39 wxCDAudioWin(void);
40 ///
41 wxCDAudioWin(const char *dev_name);
42 ///
43 virtual ~wxCDAudioWin(void);
44
45 ///
46 virtual bool Play(const wxCDtime& beg_time, const wxCDtime& end_time);
47 ///
48 virtual bool Pause(void);
49 ///
50 virtual bool Resume(void);
51 ///
52 virtual CDstatus GetStatus(void);
53 ///
54 virtual wxCDtime GetTime(void);
55 ///
56 virtual const CDtoc& GetToc(void);
57 ///
58 virtual inline bool Ok(void) const { return m_ok; }
59 protected:
60 void PrepareToc();
61 };
62
63 #endif