]> git.saurik.com Git - wxWidgets.git/blame - utils/wxMMedia/cdunix.h
In DialogEd, changed Close to Destroy to make it shut down properly.
[wxWidgets.git] / utils / wxMMedia / cdunix.h
CommitLineData
4d6306eb
GL
1// /////////////////////////////////////////////////////////////////////////////
2// Name: cdunix.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 __CDUNIXH__
11#define __CDUNIXH__
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///
26class WXDLLEXPORT wxCDAudioLinux : public wxCDAudio {
27 DECLARE_DYNAMIC_CLASS(wxCDAudioLinux)
28protected:
29 wxCDtime m_time;
30 CDstatus m_status;
31 CDtoc *m_toc;
32 int m_fd;
33 wxCDtime *m_trksize, *m_trkpos;
34public:
35 ///
36 wxCDAudioLinux();
37 ///
38 wxCDAudioLinux(const char *dev_name);
39 ///
40 virtual ~wxCDAudioLinux();
41
42 ///
43 virtual bool Play(const wxCDtime& beg_time, const wxCDtime& end_time);
44 ///
45 virtual bool Pause();
46 ///
47 virtual bool Resume();
48 ///
49 virtual CDstatus GetStatus();
50 ///
51 virtual wxCDtime GetTime();
52 ///
53 virtual CDtoc& GetToc();
54 ///
55 virtual inline bool Ok() const { return (m_fd != -1); }
56protected:
57 ///
58 void OpenDevice(const char *dev_name);
59};
60
61#endif