]> git.saurik.com Git - wxWidgets.git/blame - utils/wxMMedia/mmdata.cpp
mbstowcs hack for CodeWarrior's MSL
[wxWidgets.git] / utils / wxMMedia / mmdata.cpp
CommitLineData
4d6306eb
GL
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////////////////////////////////////////////////////////////////////////////////
6c905cb7
UU
10#include "wx/wxprec.h"
11
4d6306eb
GL
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
46IMPLEMENT_ABSTRACT_CLASS(wxSound, wxObject)
47IMPLEMENT_ABSTRACT_CLASS(wxSndBuffer, wxObject)
48IMPLEMENT_DYNAMIC_CLASS(wxSndSimpleBuffer, wxSndBuffer)
49
50IMPLEMENT_ABSTRACT_CLASS(wxSoundCodec, wxObject)
51IMPLEMENT_DYNAMIC_CLASS(wxSoundPcmCodec, wxSoundCodec)
52IMPLEMENT_DYNAMIC_CLASS(wxSoundMulawCodec, wxSoundCodec)
53
54#ifdef __UNIX__
55IMPLEMENT_DYNAMIC_CLASS(wxUssSound, wxSound)
56#endif
57#ifdef __WINDOWS__
58IMPLEMENT_DYNAMIC_CLASS(wxWinSound, wxSound)
59#endif
60
61IMPLEMENT_ABSTRACT_CLASS(wxSndFileCodec, wxMMediaFile)
62IMPLEMENT_DYNAMIC_CLASS(wxSndWavCodec, wxSndFileCodec)
63IMPLEMENT_DYNAMIC_CLASS(wxSndAuCodec, wxSndFileCodec)
64IMPLEMENT_DYNAMIC_CLASS(wxSndAiffCodec, wxSndFileCodec)
65
66IMPLEMENT_ABSTRACT_CLASS(wxVideoBaseDriver, wxMMediaFile)
67IMPLEMENT_DYNAMIC_CLASS(wxVideoOutput, wxWindow)
68#if defined(__X__) || defined(__WXGTK__)
9fc0fe37 69// IMPLEMENT_DYNAMIC_CLASS(wxVideoXANIM, wxVideoBaseDriver)
4d6306eb
GL
70#endif
71#ifdef __WINDOWS__
72IMPLEMENT_DYNAMIC_CLASS(wxVideoWindows, wxVideoBaseDriver)
73#endif
74
75IMPLEMENT_ABSTRACT_CLASS(wxCDAudio, wxObject)
76#ifdef linux
77IMPLEMENT_DYNAMIC_CLASS(wxCDAudioLinux, wxCDAudio)
78#else
79IMPLEMENT_DYNAMIC_CLASS(wxCDAudioWin, wxCDAudio)
80#endif
81
82// IMPLEMENT_ABSTRACT_CLASS(wxMidiFile, wxObject)
83
84wxMediaFileSolve::wxMFileList *wxMediaFileSolve::m_first = NULL;
85wxUint8 wxMediaFileSolve::m_devnum = 0;
86
87MMD_REGISTER_FILE("audio/x-wav", "Wav Player", wxSndWavCodec, "wav")
88MMD_REGISTER_FILE("audio/x-aiff", "Aiff Player", wxSndAiffCodec, "aif")
89MMD_REGISTER_FILE("audio/x-au", "Sun Audio File Player", wxSndAuCodec, "au")
90#if defined(__X__) || defined(__WXGTK__)
9fc0fe37 91// MMD_REGISTER_FILE("video/*", "Video Player", wxVideoXANIM, "mov")
4d6306eb
GL
92#else
93MMD_REGISTER_FILE("video/avi", "AVI Player", wxVideoWindows, "avi")
94#endif