]> git.saurik.com Git - wxWidgets.git/blob - utils/wxMMedia/vidwin.h
egcs compilation fix
[wxWidgets.git] / utils / wxMMedia / vidwin.h
1 // /////////////////////////////////////////////////////////////////////////////
2 // Name: vidwin.h
3 // Purpose: wxMMedia
4 // Author: Guilhem Lavaux
5 // Created: February 1998
6 // Updated:
7 // Copyright: (C) 1998, Guilhem Lavaux
8 // License: wxWindows license
9 // /////////////////////////////////////////////////////////////////////////////
10 /* Real -*- C++ -*- */
11 #ifndef __VID_windows_H__
12 #define __VID_windows_H__
13
14 #ifdef __GNUG__
15 #pragma interface
16 #endif
17
18 #include "mmtype.h"
19 #include "mmfile.h"
20 #ifdef WX_PRECOMP
21 #include "wx/wxprec.h"
22 #else
23 #include "wx/wx.h"
24 #endif
25 #include "vidbase.h"
26
27 #ifdef WXMMEDIA_INTERNAL
28 #include <windows.h>
29 #include <mmsystem.h>
30
31 typedef struct VIDW_Internal {
32 MCIDEVICEID dev_id;
33 } VIDW_Internal;
34 #endif
35
36 class wxVideoWindows : public wxVideoBaseDriver {
37 DECLARE_DYNAMIC_CLASS(wxVideoWindows)
38 protected:
39 struct VIDW_Internal *internal;
40
41 void OpenFile(const char *fname);
42 public:
43 wxVideoWindows(void);
44 wxVideoWindows(wxInputStream& str, bool seekable = FALSE);
45 wxVideoWindows(const char *fname);
46 virtual ~wxVideoWindows(void);
47
48 virtual bool StartPlay(void);
49 virtual void StopPlay(void);
50 virtual bool Pause(void);
51 virtual bool Resume(void);
52
53 virtual bool SetVolume(wxUint8 vol);
54 virtual bool Resize(wxUint16 w, wxUint16 h);
55
56 virtual bool IsCapable(wxVideoType v_type);
57
58 virtual bool AttachOutput(wxVideoOutput& output);
59 virtual void DetachOutput(void);
60 };
61
62 #endif