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