]> git.saurik.com Git - wxWidgets.git/blob - utils/wxMMedia/cdwin.h
fixed somebody's poorly done StreamSize-->GetSize transition
[wxWidgets.git] / utils / wxMMedia / 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 #ifdef WX_PRECOMP
18 #include "wx/wxprec.h"
19 #else
20 #include "wx/wx.h"
21 #endif
22 #include "mmtype.h"
23 #include "cdbase.h"
24
25 #ifdef WXMMEDIA_INTERNAL
26 #include <windows.h>
27 #include <mmsystem.h>
28 typedef struct CDAW_Internal {
29 MCIDEVICEID dev_id;
30 } CDAW_Internal;
31 #endif
32
33 ///
34 class WXDLLEXPORT wxCDAudioWin : public wxCDAudio {
35 DECLARE_DYNAMIC_CLASS(wxCDAudioWin)
36 protected:
37 struct CDAW_Internal *m_internal;
38 wxCDtime *m_trksize, *m_trkpos;
39 CDtoc *m_toc;
40 bool m_ok;
41 public:
42 ///
43 wxCDAudioWin(void);
44 ///
45 wxCDAudioWin(const char *dev_name);
46 ///
47 virtual ~wxCDAudioWin(void);
48
49 ///
50 virtual bool Play(const wxCDtime& beg_time, const wxCDtime& end_time);
51 ///
52 virtual bool Pause(void);
53 ///
54 virtual bool Resume(void);
55 ///
56 virtual CDstatus GetStatus(void);
57 ///
58 virtual wxCDtime GetTime(void);
59 ///
60 virtual CDtoc& GetToc(void);
61 ///
62 virtual inline bool Ok(void) const { return m_ok; }
63 protected:
64 void PrepareToc();
65 };
66
67 #endif