]> git.saurik.com Git - wxWidgets.git/blame - contrib/include/wx/mmedia/cdwin.h
implemented wxEventLoop for wxMac
[wxWidgets.git] / contrib / include / wx / mmedia / cdwin.h
CommitLineData
e8482f24
GL
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
e8482f24 13#include "wx/wxprec.h"
15e8daec 14#include "wx/mmedia/defs.h"
e8482f24
GL
15#include "cdbase.h"
16
17#ifdef WXMMEDIA_INTERNAL
18#include <windows.h>
19#include <mmsystem.h>
20typedef struct CDAW_Internal {
21 MCIDEVICEID dev_id;
22} CDAW_Internal;
23#endif
24
25///
15e8daec 26class WXDLLIMPEXP_MMEDIA wxCDAudioWin : public wxCDAudio {
e8482f24
GL
27 DECLARE_DYNAMIC_CLASS(wxCDAudioWin)
28protected:
29 struct CDAW_Internal *m_internal;
30 wxCDtime *m_trksize, *m_trkpos;
31 CDtoc *m_toc;
32 bool m_ok;
33public:
34 ///
35 wxCDAudioWin(void);
36 ///
37 wxCDAudioWin(const char *dev_name);
38 ///
39 virtual ~wxCDAudioWin(void);
40
41 ///
42 virtual bool Play(const wxCDtime& beg_time, const wxCDtime& end_time);
43 ///
44 virtual bool Pause(void);
45 ///
46 virtual bool Resume(void);
47 ///
48 virtual CDstatus GetStatus(void);
49 ///
50 virtual wxCDtime GetTime(void);
51 ///
52 virtual const CDtoc& GetToc(void);
53 ///
54 virtual inline bool Ok(void) const { return m_ok; }
55protected:
56 void PrepareToc();
57};
58
59#endif