1 // ---------------------------------------------------------------------------
4 // Author: Guilhem Lavaux
7 // Copyright: (C) 1997, 1998, 1999, 2000 Guilhem Lavaux
8 // License: wxWindows license
9 // ---------------------------------------------------------------------------
13 #if defined(__GNUG__) && !defined(__APPLE__)
14 #pragma interface "cdunix.h"
18 #include "wx/object.h"
19 #include "wx/string.h"
20 #include "wx/mmedia/cdbase.h"
23 class WXDLLEXPORT wxCDAudioLinux
: public wxCDAudio
{
24 DECLARE_DYNAMIC_CLASS(wxCDAudioLinux
)
30 wxCDtime
*m_trksize
, *m_trkpos
;
35 wxCDAudioLinux(const wxString
& dev_name
);
37 virtual ~wxCDAudioLinux();
40 virtual bool Play(const wxCDtime
& beg_time
, const wxCDtime
& end_time
);
44 virtual bool Resume();
46 virtual CDstatus
GetStatus();
48 virtual wxCDtime
GetTime();
50 virtual CDtoc
& GetToc();
52 virtual inline bool Ok() const { return (m_fd
!= -1); }
55 void OpenDevice(const wxString
& dev_name
);