1998-11-09 18:37:38 +00:00
|
|
|
////////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: mmdata.cpp
|
|
|
|
// Purpose: wxMMedia
|
|
|
|
// Author: Guilhem Lavaux
|
|
|
|
// Created: 1997
|
|
|
|
// Updated: 1998
|
|
|
|
// Copyright: (C) 1997, 1998, Guilhem Lavaux
|
|
|
|
// License: wxWindows license
|
|
|
|
////////////////////////////////////////////////////////////////////////////////
|
1999-01-08 10:54:10 +00:00
|
|
|
#include "wx/wxprec.h"
|
|
|
|
|
1998-11-09 18:37:38 +00:00
|
|
|
#include "mmfile.h"
|
|
|
|
|
|
|
|
#include "sndsnd.h"
|
|
|
|
#include "sndfrmt.h"
|
|
|
|
#if defined(__UNIX__)
|
|
|
|
#include "snduss.h"
|
|
|
|
#endif
|
|
|
|
#include "sndfrag.h"
|
|
|
|
#include "sndfile.h"
|
|
|
|
#include "sndwav.h"
|
|
|
|
#include "sndaiff.h"
|
|
|
|
#include "sndau.h"
|
|
|
|
#include "sndpcm.h"
|
|
|
|
#include "sndmulaw.h"
|
1999-02-18 18:18:06 +00:00
|
|
|
#include "sndadpcm.h"
|
1998-11-09 18:37:38 +00:00
|
|
|
#include "vidbase.h"
|
|
|
|
#if defined(__X__) || defined(__WXGTK__)
|
|
|
|
#include "vidxanm.h"
|
|
|
|
#endif
|
|
|
|
#ifdef __WINDOWS__
|
|
|
|
#include "sndwin.h"
|
|
|
|
#include "cdwin.h"
|
|
|
|
#include "vidwin.h"
|
|
|
|
#endif
|
|
|
|
#include "cdbase.h"
|
|
|
|
#ifdef __UNIX__
|
|
|
|
#include "cdunix.h"
|
|
|
|
#endif
|
|
|
|
#include "mmsolve.h"
|
|
|
|
// #include "midfile.h"
|
|
|
|
|
|
|
|
#ifdef __BORLANDC__
|
|
|
|
#pragma hdrstop
|
|
|
|
#endif
|
|
|
|
|
|
|
|
IMPLEMENT_ABSTRACT_CLASS(wxSound, wxObject)
|
|
|
|
IMPLEMENT_ABSTRACT_CLASS(wxSndBuffer, wxObject)
|
|
|
|
IMPLEMENT_DYNAMIC_CLASS(wxSndSimpleBuffer, wxSndBuffer)
|
|
|
|
|
|
|
|
IMPLEMENT_ABSTRACT_CLASS(wxSoundCodec, wxObject)
|
|
|
|
IMPLEMENT_DYNAMIC_CLASS(wxSoundPcmCodec, wxSoundCodec)
|
|
|
|
IMPLEMENT_DYNAMIC_CLASS(wxSoundMulawCodec, wxSoundCodec)
|
1999-02-18 18:18:06 +00:00
|
|
|
IMPLEMENT_DYNAMIC_CLASS(wxSoundAdpcmCodec, wxSoundCodec)
|
1998-11-09 18:37:38 +00:00
|
|
|
|
|
|
|
#ifdef __UNIX__
|
|
|
|
IMPLEMENT_DYNAMIC_CLASS(wxUssSound, wxSound)
|
|
|
|
#endif
|
|
|
|
#ifdef __WINDOWS__
|
|
|
|
IMPLEMENT_DYNAMIC_CLASS(wxWinSound, wxSound)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
IMPLEMENT_ABSTRACT_CLASS(wxSndFileCodec, wxMMediaFile)
|
|
|
|
IMPLEMENT_DYNAMIC_CLASS(wxSndWavCodec, wxSndFileCodec)
|
|
|
|
IMPLEMENT_DYNAMIC_CLASS(wxSndAuCodec, wxSndFileCodec)
|
|
|
|
IMPLEMENT_DYNAMIC_CLASS(wxSndAiffCodec, wxSndFileCodec)
|
|
|
|
|
|
|
|
IMPLEMENT_ABSTRACT_CLASS(wxVideoBaseDriver, wxMMediaFile)
|
|
|
|
IMPLEMENT_DYNAMIC_CLASS(wxVideoOutput, wxWindow)
|
|
|
|
#if defined(__X__) || defined(__WXGTK__)
|
1999-02-18 18:18:06 +00:00
|
|
|
IMPLEMENT_DYNAMIC_CLASS(wxVideoXANIM, wxVideoBaseDriver)
|
1998-11-09 18:37:38 +00:00
|
|
|
#endif
|
|
|
|
#ifdef __WINDOWS__
|
|
|
|
IMPLEMENT_DYNAMIC_CLASS(wxVideoWindows, wxVideoBaseDriver)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
IMPLEMENT_ABSTRACT_CLASS(wxCDAudio, wxObject)
|
|
|
|
#ifdef linux
|
|
|
|
IMPLEMENT_DYNAMIC_CLASS(wxCDAudioLinux, wxCDAudio)
|
|
|
|
#else
|
|
|
|
IMPLEMENT_DYNAMIC_CLASS(wxCDAudioWin, wxCDAudio)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
// IMPLEMENT_ABSTRACT_CLASS(wxMidiFile, wxObject)
|
|
|
|
|
|
|
|
wxMediaFileSolve::wxMFileList *wxMediaFileSolve::m_first = NULL;
|
|
|
|
wxUint8 wxMediaFileSolve::m_devnum = 0;
|
|
|
|
|
|
|
|
MMD_REGISTER_FILE("audio/x-wav", "Wav Player", wxSndWavCodec, "wav")
|
|
|
|
MMD_REGISTER_FILE("audio/x-aiff", "Aiff Player", wxSndAiffCodec, "aif")
|
|
|
|
MMD_REGISTER_FILE("audio/x-au", "Sun Audio File Player", wxSndAuCodec, "au")
|
|
|
|
#if defined(__X__) || defined(__WXGTK__)
|
1999-02-18 18:18:06 +00:00
|
|
|
MMD_REGISTER_FILE("video/*", "Video Player", wxVideoXANIM, "mov")
|
1998-11-09 18:37:38 +00:00
|
|
|
#else
|
|
|
|
MMD_REGISTER_FILE("video/avi", "AVI Player", wxVideoWindows, "avi")
|
|
|
|
#endif
|