]>
Commit | Line | Data |
---|---|---|
e8482f24 GL |
1 | // --------------------------------------------------------------------------- |
2 | // Name: cdunix.h | |
3 | // Purpose: wxMMedia | |
4 | // Author: Guilhem Lavaux | |
5 | // Created: 1997 | |
6 | // Updated: 2000 | |
7 | // Copyright: (C) 1997, 1998, 1999, 2000 Guilhem Lavaux | |
8 | // License: wxWindows license | |
9 | // --------------------------------------------------------------------------- | |
10 | #ifndef __CDUNIXH__ | |
11 | #define __CDUNIXH__ | |
12 | ||
e8482f24 GL |
13 | #include "wx/defs.h" |
14 | #include "wx/object.h" | |
15 | #include "wx/string.h" | |
15e8daec | 16 | #include "wx/mmedia/defs.h" |
e8482f24 GL |
17 | #include "wx/mmedia/cdbase.h" |
18 | ||
19 | /// | |
15e8daec | 20 | class WXDLLIMPEXP_MMEDIA wxCDAudioLinux : public wxCDAudio { |
e8482f24 GL |
21 | DECLARE_DYNAMIC_CLASS(wxCDAudioLinux) |
22 | protected: | |
23 | wxCDtime m_time; | |
24 | CDstatus m_status; | |
25 | CDtoc *m_toc; | |
26 | int m_fd; | |
27 | wxCDtime *m_trksize, *m_trkpos; | |
28 | public: | |
29 | /// | |
30 | wxCDAudioLinux(); | |
31 | /// | |
32 | wxCDAudioLinux(const wxString& dev_name); | |
33 | /// | |
34 | virtual ~wxCDAudioLinux(); | |
35 | ||
36 | /// | |
37 | virtual bool Play(const wxCDtime& beg_time, const wxCDtime& end_time); | |
38 | /// | |
39 | virtual bool Pause(); | |
40 | /// | |
41 | virtual bool Resume(); | |
42 | /// | |
43 | virtual CDstatus GetStatus(); | |
44 | /// | |
45 | virtual wxCDtime GetTime(); | |
46 | /// | |
47 | virtual CDtoc& GetToc(); | |
48 | /// | |
49 | virtual inline bool Ok() const { return (m_fd != -1); } | |
50 | protected: | |
51 | /// | |
52 | void OpenDevice(const wxString& dev_name); | |
53 | }; | |
54 | ||
55 | #endif |