]>
git.saurik.com Git - wxWidgets.git/blob - utils/wxMMedia/mmfile.h
1 // /////////////////////////////////////////////////////////////////////////////
4 // Author: Guilhem Lavaux
7 // Copyright: (C) 1997, 1998, Guilhem Lavaux
8 // License: wxWindows license
9 // /////////////////////////////////////////////////////////////////////////////
10 #ifndef __MMD_file_H__
11 #define __MMD_file_H__
17 #include "wx/string.h"
18 #include "wx/stream.h"
31 wxUint8 minutes
, seconds
;
34 /// Common base class for multimedia file.
39 wxMMediaFile(wxInputStream
& is
, bool preload
, bool seekable
);
41 wxMMediaFile(wxOutputStream
& is
, bool seekable
);
43 wxMMediaFile(const wxString
& fname
);
45 virtual ~wxMMediaFile();
48 wxInputStream
*GetIRawData();
49 wxOutputStream
*GetORawData();
51 wxString
GetCurrentFile();
54 virtual void SetFile(wxInputStream
& is
,
55 bool preload
= FALSE
, bool seekable
= FALSE
);
57 virtual void SetFile(wxOutputStream
& is
, bool seekable
= FALSE
);
59 void SetFile(const wxString
& fname
);
62 wxMMFileError
GetFileError() const { return m_mmerror
; }
64 virtual wxMMtime
GetLength();
66 virtual wxMMtime
GetPosition();
68 virtual bool StartPlay() = 0;
70 virtual void StopPlay() = 0;
73 wxMMFileError m_mmerror
;
75 wxInputStream
*m_istream
, *m_i_temp
;
77 wxOutputStream
*m_ostream
, *m_o_temp
;
79 wxString m_tmpfname
, m_mfname
;
86 void CleanUpPrevious();