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/defs.h"
21 #include "wx/mmedia/cdbase.h"
24 class WXDLLIMPEXP_MMEDIA wxCDAudioLinux
: public wxCDAudio
{
25 DECLARE_DYNAMIC_CLASS(wxCDAudioLinux
)
31 wxCDtime
*m_trksize
, *m_trkpos
;
36 wxCDAudioLinux(const wxString
& dev_name
);
38 virtual ~wxCDAudioLinux();
41 virtual bool Play(const wxCDtime
& beg_time
, const wxCDtime
& end_time
);
45 virtual bool Resume();
47 virtual CDstatus
GetStatus();
49 virtual wxCDtime
GetTime();
51 virtual CDtoc
& GetToc();
53 virtual inline bool Ok() const { return (m_fd
!= -1); }
56 void OpenDevice(const wxString
& dev_name
);