]> git.saurik.com Git - wxWidgets.git/blob - utils/wxMMedia/mmdata.cpp
* Added wxMMedia in the repository so people interrested in it can work on it
[wxWidgets.git] / utils / wxMMedia / mmdata.cpp
1 ////////////////////////////////////////////////////////////////////////////////
2 // Name: mmdata.cpp
3 // Purpose: wxMMedia
4 // Author: Guilhem Lavaux
5 // Created: 1997
6 // Updated: 1998
7 // Copyright: (C) 1997, 1998, Guilhem Lavaux
8 // License: wxWindows license
9 ////////////////////////////////////////////////////////////////////////////////
10 #include "mmfile.h"
11
12 #include "sndsnd.h"
13 #include "sndfrmt.h"
14 #if defined(__UNIX__)
15 #include "snduss.h"
16 #endif
17 #include "sndfrag.h"
18 #include "sndfile.h"
19 #include "sndwav.h"
20 #include "sndaiff.h"
21 #include "sndau.h"
22 #include "sndpcm.h"
23 #include "sndmulaw.h"
24 #include "vidbase.h"
25 #if defined(__X__) || defined(__WXGTK__)
26 #include "vidxanm.h"
27 #endif
28 #ifdef __WINDOWS__
29 #include "sndwin.h"
30 #include "cdwin.h"
31 #include "vidwin.h"
32 #endif
33 #include "cdbase.h"
34 #ifdef __UNIX__
35 #include "cdunix.h"
36 #endif
37 #include "mmsolve.h"
38 // #include "midfile.h"
39
40 #ifdef __BORLANDC__
41 #pragma hdrstop
42 #endif
43
44 IMPLEMENT_ABSTRACT_CLASS(wxSound, wxObject)
45 IMPLEMENT_ABSTRACT_CLASS(wxSndBuffer, wxObject)
46 IMPLEMENT_DYNAMIC_CLASS(wxSndSimpleBuffer, wxSndBuffer)
47
48 IMPLEMENT_ABSTRACT_CLASS(wxSoundCodec, wxObject)
49 IMPLEMENT_DYNAMIC_CLASS(wxSoundPcmCodec, wxSoundCodec)
50 IMPLEMENT_DYNAMIC_CLASS(wxSoundMulawCodec, wxSoundCodec)
51
52 #ifdef __UNIX__
53 IMPLEMENT_DYNAMIC_CLASS(wxUssSound, wxSound)
54 #endif
55 #ifdef __WINDOWS__
56 IMPLEMENT_DYNAMIC_CLASS(wxWinSound, wxSound)
57 #endif
58
59 IMPLEMENT_ABSTRACT_CLASS(wxSndFileCodec, wxMMediaFile)
60 IMPLEMENT_DYNAMIC_CLASS(wxSndWavCodec, wxSndFileCodec)
61 IMPLEMENT_DYNAMIC_CLASS(wxSndAuCodec, wxSndFileCodec)
62 IMPLEMENT_DYNAMIC_CLASS(wxSndAiffCodec, wxSndFileCodec)
63
64 IMPLEMENT_ABSTRACT_CLASS(wxVideoBaseDriver, wxMMediaFile)
65 IMPLEMENT_DYNAMIC_CLASS(wxVideoOutput, wxWindow)
66 #if defined(__X__) || defined(__WXGTK__)
67 IMPLEMENT_DYNAMIC_CLASS(wxVideoXANIM, wxVideoBaseDriver)
68 #endif
69 #ifdef __WINDOWS__
70 IMPLEMENT_DYNAMIC_CLASS(wxVideoWindows, wxVideoBaseDriver)
71 #endif
72
73 IMPLEMENT_ABSTRACT_CLASS(wxCDAudio, wxObject)
74 #ifdef linux
75 IMPLEMENT_DYNAMIC_CLASS(wxCDAudioLinux, wxCDAudio)
76 #else
77 IMPLEMENT_DYNAMIC_CLASS(wxCDAudioWin, wxCDAudio)
78 #endif
79
80 // IMPLEMENT_ABSTRACT_CLASS(wxMidiFile, wxObject)
81
82 wxMediaFileSolve::wxMFileList *wxMediaFileSolve::m_first = NULL;
83 wxUint8 wxMediaFileSolve::m_devnum = 0;
84
85 MMD_REGISTER_FILE("audio/x-wav", "Wav Player", wxSndWavCodec, "wav")
86 MMD_REGISTER_FILE("audio/x-aiff", "Aiff Player", wxSndAiffCodec, "aif")
87 MMD_REGISTER_FILE("audio/x-au", "Sun Audio File Player", wxSndAuCodec, "au")
88 #if defined(__X__) || defined(__WXGTK__)
89 MMD_REGISTER_FILE("video/*", "Video Player", wxVideoXANIM, "mov")
90 #else
91 MMD_REGISTER_FILE("video/avi", "AVI Player", wxVideoWindows, "avi")
92 #endif