HWND m_hNotifyWnd;
wxSize m_bestSize;
- DECLARE_DYNAMIC_CLASS(wxAMMediaBackend);
+ DECLARE_DYNAMIC_CLASS(wxAMMediaBackend)
};
//---------------------------------------------------------------------------
#define TimeScale long
#define TimeBase struct TimeBaseRecord *
+#ifndef URLDataHandlerSubType
+#if defined(__WATCOMC__) || defined(__MINGW32__)
+// use magic numbers for compilers which complain about multicharacter integers
+const OSType URLDataHandlerSubType = 1970433056;
+const OSType VisualMediaCharacteristic = 1702454643;
+#else
+const OSType URLDataHandlerSubType = 'url ';
+const OSType VisualMediaCharacteristic = 'eyes';
+#endif
+#endif
+
struct FSSpec {
short vRefNum;
long parID;
wxQuickTimeLibrary m_lib;
- DECLARE_DYNAMIC_CLASS(wxQTMediaBackend);
+ DECLARE_DYNAMIC_CLASS(wxQTMediaBackend)
};
//create the movie from the handle that refers to the URI
OSErr err = m_lib.NewMovieFromDataRef(&m_movie, newMovieActive,
NULL, theHandle,
- 'url'); //URLDataHandlerSubType
+ URLDataHandlerSubType);
m_lib.DisposeHandle(theHandle);
//reparent movie/*AudioMediaCharacteristic*/
if(m_lib.GetMovieIndTrackType(m_movie, 1,
- 'eyes', //VisualMediaCharacteristic,
+ VisualMediaCharacteristic,
(1 << 1) //movieTrackCharacteristic
| (1 << 2) //movieTrackEnabledOnly
) != NULL)