]> git.saurik.com Git - wxWidgets.git/blame - utils/wxMMedia/mmdata.cpp
Added test for sprintf and vsnprintf to fix string.cpp for non-GNU systems.
[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////////////////////////////////////////////////////////////////////////////////
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
44IMPLEMENT_ABSTRACT_CLASS(wxSound, wxObject)
45IMPLEMENT_ABSTRACT_CLASS(wxSndBuffer, wxObject)
46IMPLEMENT_DYNAMIC_CLASS(wxSndSimpleBuffer, wxSndBuffer)
47
48IMPLEMENT_ABSTRACT_CLASS(wxSoundCodec, wxObject)
49IMPLEMENT_DYNAMIC_CLASS(wxSoundPcmCodec, wxSoundCodec)
50IMPLEMENT_DYNAMIC_CLASS(wxSoundMulawCodec, wxSoundCodec)
51
52#ifdef __UNIX__
53IMPLEMENT_DYNAMIC_CLASS(wxUssSound, wxSound)
54#endif
55#ifdef __WINDOWS__
56IMPLEMENT_DYNAMIC_CLASS(wxWinSound, wxSound)
57#endif
58
59IMPLEMENT_ABSTRACT_CLASS(wxSndFileCodec, wxMMediaFile)
60IMPLEMENT_DYNAMIC_CLASS(wxSndWavCodec, wxSndFileCodec)
61IMPLEMENT_DYNAMIC_CLASS(wxSndAuCodec, wxSndFileCodec)
62IMPLEMENT_DYNAMIC_CLASS(wxSndAiffCodec, wxSndFileCodec)
63
64IMPLEMENT_ABSTRACT_CLASS(wxVideoBaseDriver, wxMMediaFile)
65IMPLEMENT_DYNAMIC_CLASS(wxVideoOutput, wxWindow)
66#if defined(__X__) || defined(__WXGTK__)
67IMPLEMENT_DYNAMIC_CLASS(wxVideoXANIM, wxVideoBaseDriver)
68#endif
69#ifdef __WINDOWS__
70IMPLEMENT_DYNAMIC_CLASS(wxVideoWindows, wxVideoBaseDriver)
71#endif
72
73IMPLEMENT_ABSTRACT_CLASS(wxCDAudio, wxObject)
74#ifdef linux
75IMPLEMENT_DYNAMIC_CLASS(wxCDAudioLinux, wxCDAudio)
76#else
77IMPLEMENT_DYNAMIC_CLASS(wxCDAudioWin, wxCDAudio)
78#endif
79
80// IMPLEMENT_ABSTRACT_CLASS(wxMidiFile, wxObject)
81
82wxMediaFileSolve::wxMFileList *wxMediaFileSolve::m_first = NULL;
83wxUint8 wxMediaFileSolve::m_devnum = 0;
84
85MMD_REGISTER_FILE("audio/x-wav", "Wav Player", wxSndWavCodec, "wav")
86MMD_REGISTER_FILE("audio/x-aiff", "Aiff Player", wxSndAiffCodec, "aif")
87MMD_REGISTER_FILE("audio/x-au", "Sun Audio File Player", wxSndAuCodec, "au")
88#if defined(__X__) || defined(__WXGTK__)
89MMD_REGISTER_FILE("video/*", "Video Player", wxVideoXANIM, "mov")
90#else
91MMD_REGISTER_FILE("video/avi", "AVI Player", wxVideoWindows, "avi")
92#endif