Make wxMMedia2 compile on VC++ 5
Added makefile for VC++ 5 Warning: sndwin.cpp will not compile, it is unfinished git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3402 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -15,11 +15,7 @@
|
|||||||
#pragma interface
|
#pragma interface
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef WX_PRECOMP
|
#include "wx/wxprec.h"
|
||||||
#include "wx_prec.h"
|
|
||||||
#else
|
|
||||||
#include "wx/wx.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
typedef struct wxCDtime {
|
typedef struct wxCDtime {
|
||||||
wxUint8 track;
|
wxUint8 track;
|
||||||
|
@@ -14,11 +14,7 @@
|
|||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <mmsystem.h>
|
#include <mmsystem.h>
|
||||||
#ifdef WX_PRECOMP
|
|
||||||
#include "wx/wxprec.h"
|
#include "wx/wxprec.h"
|
||||||
#else
|
|
||||||
#include "wx/wx.h"
|
|
||||||
#endif
|
|
||||||
#define WXMMEDIA_INTERNAL
|
#define WXMMEDIA_INTERNAL
|
||||||
#include "cdbase.h"
|
#include "cdbase.h"
|
||||||
#include "cdwin.h"
|
#include "cdwin.h"
|
||||||
@@ -69,7 +65,6 @@ wxCDAudioWin::~wxCDAudioWin(void)
|
|||||||
void wxCDAudioWin::PrepareToc(void)
|
void wxCDAudioWin::PrepareToc(void)
|
||||||
{
|
{
|
||||||
MCI_STATUS_PARMS status_struct;
|
MCI_STATUS_PARMS status_struct;
|
||||||
MCI_SET_PARMS set_struct;
|
|
||||||
wxUint16 i, nb_m_trksize;
|
wxUint16 i, nb_m_trksize;
|
||||||
wxCDtime total_time, *trk;
|
wxCDtime total_time, *trk;
|
||||||
DWORD ret, tmem;
|
DWORD ret, tmem;
|
||||||
@@ -201,7 +196,7 @@ wxCDtime wxCDAudioWin::GetTime(void)
|
|||||||
return cd_time;
|
return cd_time;
|
||||||
}
|
}
|
||||||
|
|
||||||
wxCDAudio::CDtoc& wxCDAudioWin::GetToc(void)
|
const wxCDAudio::CDtoc& wxCDAudioWin::GetToc(void)
|
||||||
{
|
{
|
||||||
return *m_toc;
|
return *m_toc;
|
||||||
}
|
}
|
||||||
|
@@ -14,11 +14,7 @@
|
|||||||
#pragma interface
|
#pragma interface
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef WX_PRECOMP
|
|
||||||
#include "wx/wxprec.h"
|
#include "wx/wxprec.h"
|
||||||
#else
|
|
||||||
#include "wx/wx.h"
|
|
||||||
#endif
|
|
||||||
#include "cdbase.h"
|
#include "cdbase.h"
|
||||||
|
|
||||||
#ifdef WXMMEDIA_INTERNAL
|
#ifdef WXMMEDIA_INTERNAL
|
||||||
@@ -56,7 +52,7 @@ public:
|
|||||||
///
|
///
|
||||||
virtual wxCDtime GetTime(void);
|
virtual wxCDtime GetTime(void);
|
||||||
///
|
///
|
||||||
virtual CDtoc& GetToc(void);
|
virtual const CDtoc& GetToc(void);
|
||||||
///
|
///
|
||||||
virtual inline bool Ok(void) const { return m_ok; }
|
virtual inline bool Ok(void) const { return m_ok; }
|
||||||
protected:
|
protected:
|
||||||
|
@@ -24,6 +24,8 @@
|
|||||||
* Mountain View, California 94043
|
* Mountain View, California 94043
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <wx/wxprec.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* g711.c
|
* g711.c
|
||||||
*
|
*
|
||||||
|
@@ -24,6 +24,8 @@
|
|||||||
* Mountain View, California 94043
|
* Mountain View, California 94043
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <wx/wxprec.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* g721.c
|
* g721.c
|
||||||
*
|
*
|
||||||
|
@@ -37,6 +37,7 @@
|
|||||||
* of workstation attributes, such as hardware 2's complement arithmetic.
|
* of workstation attributes, such as hardware 2's complement arithmetic.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
#include <wx/wxprec.h>
|
||||||
#include "g72x.h"
|
#include "g72x.h"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@@ -45,6 +45,7 @@
|
|||||||
* the name of the module which it is implementing.
|
* the name of the module which it is implementing.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
#include <wx/wxprec.h>
|
||||||
#include "g72x.h"
|
#include "g72x.h"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
106
utils/wxMMedia2/lib/makefile.vc
Normal file
106
utils/wxMMedia2/lib/makefile.vc
Normal file
@@ -0,0 +1,106 @@
|
|||||||
|
#
|
||||||
|
# File: makefile.nt
|
||||||
|
# Author: Julian Smart
|
||||||
|
# Created: 1993
|
||||||
|
# Updated:
|
||||||
|
# Copyright: (c) 1993, AIAI, University of Edinburgh
|
||||||
|
#
|
||||||
|
# "%W% %G%"
|
||||||
|
#
|
||||||
|
# Makefile : Builds GLCanvas class library (MS VC++).
|
||||||
|
# Use FINAL=1 argument to nmake to build final version with no debugging
|
||||||
|
# info
|
||||||
|
|
||||||
|
# Set WXDIR for your system
|
||||||
|
WXDIR = $(WXWIN)
|
||||||
|
MMDIR = $(WXDIR)\utils\wxMMedia2
|
||||||
|
THISDIR = $(MMDIR)\lib
|
||||||
|
EXTRALIBS=$(WXDIR)\lib\glcanvas.lib
|
||||||
|
|
||||||
|
LIBTARGET=$(WXDIR)\lib\mmedia2.lib
|
||||||
|
OBJECTS = cdbase.obj cdwin.obj g711.obj g721.obj g723_24.obj \
|
||||||
|
g723_40.obj g72x.obj sndbase.obj sndcodec.obj sndpcm.obj \
|
||||||
|
sndcpcm.obj sndulaw.obj sndfile.obj sndwav.obj sndaiff.obj sndwin.obj \
|
||||||
|
vidbase.obj
|
||||||
|
|
||||||
|
!include $(WXDIR)\src\makelib.vc
|
||||||
|
|
||||||
|
cdbase.obj: cdbase.h cdbase.$(SRCSUFF)
|
||||||
|
$(cc) @<<
|
||||||
|
$(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
|
||||||
|
<<
|
||||||
|
|
||||||
|
cdwin.obj: cdwin.h cdwin.$(SRCSUFF)
|
||||||
|
$(cc) @<<
|
||||||
|
$(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
|
||||||
|
<<
|
||||||
|
|
||||||
|
g711.obj: g72x.h g711.$(SRCSUFF)
|
||||||
|
$(cc) @<<
|
||||||
|
$(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
|
||||||
|
<<
|
||||||
|
|
||||||
|
g721.obj: g72x.h g721.$(SRCSUFF)
|
||||||
|
$(cc) @<<
|
||||||
|
$(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
|
||||||
|
<<
|
||||||
|
|
||||||
|
g723_24.obj: g72x.h g723_24.$(SRCSUFF)
|
||||||
|
$(cc) @<<
|
||||||
|
$(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
|
||||||
|
<<
|
||||||
|
|
||||||
|
g723_40.obj: g72x.h g723_40.$(SRCSUFF)
|
||||||
|
$(cc) @<<
|
||||||
|
$(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
|
||||||
|
<<
|
||||||
|
|
||||||
|
sndbase.obj: sndbase.h sndbase.$(SRCSUFF)
|
||||||
|
$(cc) @<<
|
||||||
|
$(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
|
||||||
|
<<
|
||||||
|
|
||||||
|
sndcodec.obj: sndcodec.h sndcodec.$(SRCSUFF)
|
||||||
|
$(cc) @<<
|
||||||
|
$(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
|
||||||
|
<<
|
||||||
|
|
||||||
|
sndpcm.obj: sndpcm.h sndpcm.$(SRCSUFF)
|
||||||
|
$(cc) @<<
|
||||||
|
$(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
|
||||||
|
<<
|
||||||
|
|
||||||
|
sndcpcm.obj: sndcpcm.h converter.def sndcpcm.$(SRCSUFF)
|
||||||
|
$(cc) @<<
|
||||||
|
$(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
|
||||||
|
<<
|
||||||
|
|
||||||
|
sndulaw.obj: sndulaw.h g72x.h sndulaw.$(SRCSUFF)
|
||||||
|
$(cc) @<<
|
||||||
|
$(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
|
||||||
|
<<
|
||||||
|
|
||||||
|
sndfile.obj: sndfile.h sndfile.$(SRCSUFF)
|
||||||
|
$(cc) @<<
|
||||||
|
$(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
|
||||||
|
<<
|
||||||
|
|
||||||
|
sndwav.obj: sndwav.h sndwav.$(SRCSUFF)
|
||||||
|
$(cc) @<<
|
||||||
|
$(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
|
||||||
|
<<
|
||||||
|
|
||||||
|
sndaiff.obj: sndaiff.h sndaiff.$(SRCSUFF)
|
||||||
|
$(cc) @<<
|
||||||
|
$(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
|
||||||
|
<<
|
||||||
|
|
||||||
|
sndwin.obj: sndwin.h sndwin.$(SRCSUFF)
|
||||||
|
$(cc) @<<
|
||||||
|
$(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
|
||||||
|
<<
|
||||||
|
|
||||||
|
vidbase.obj: vidbase.h vidbase.$(SRCSUFF)
|
||||||
|
$(cc) @<<
|
||||||
|
$(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
|
||||||
|
<<
|
@@ -9,7 +9,8 @@
|
|||||||
#pragma implementation "sndaiff.cpp"
|
#pragma implementation "sndaiff.cpp"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <wx/defs.h>
|
#include <wx/wxprec.h>
|
||||||
|
|
||||||
#include <wx/stream.h>
|
#include <wx/stream.h>
|
||||||
#include <wx/datstrm.h>
|
#include <wx/datstrm.h>
|
||||||
#include <wx/filefn.h>
|
#include <wx/filefn.h>
|
||||||
|
@@ -9,6 +9,7 @@
|
|||||||
#pragma implementation "sndbase.cpp"
|
#pragma implementation "sndbase.cpp"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include <wx/wxprec.h>
|
||||||
#include "sndbase.h"
|
#include "sndbase.h"
|
||||||
|
|
||||||
|
|
||||||
|
@@ -9,6 +9,7 @@
|
|||||||
#pragma implementation "sndcodec.cpp"
|
#pragma implementation "sndcodec.cpp"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include <wx/wxprec.h>
|
||||||
#include "sndbase.h"
|
#include "sndbase.h"
|
||||||
#include "sndcodec.h"
|
#include "sndcodec.h"
|
||||||
|
|
||||||
|
@@ -9,6 +9,7 @@
|
|||||||
#pragma implementation "sndcpcm.cpp"
|
#pragma implementation "sndcpcm.cpp"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include <wx/wxprec.h>
|
||||||
#include "sndbase.h"
|
#include "sndbase.h"
|
||||||
#include "sndpcm.h"
|
#include "sndpcm.h"
|
||||||
#include "sndcpcm.h"
|
#include "sndcpcm.h"
|
||||||
|
@@ -5,7 +5,12 @@
|
|||||||
// Author: Guilhem Lavaux <lavaux@easynet.fr> (C) 1999
|
// Author: Guilhem Lavaux <lavaux@easynet.fr> (C) 1999
|
||||||
// CVSID: $Id$
|
// CVSID: $Id$
|
||||||
// --------------------------------------------------------------------------
|
// --------------------------------------------------------------------------
|
||||||
|
#include <wx/wxprec.h>
|
||||||
|
|
||||||
|
#ifndef WX_PRECOMP
|
||||||
#include <wx/stream.h>
|
#include <wx/stream.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "sndbase.h"
|
#include "sndbase.h"
|
||||||
#include "sndcodec.h"
|
#include "sndcodec.h"
|
||||||
#include "sndfile.h"
|
#include "sndfile.h"
|
||||||
@@ -258,8 +263,9 @@ bool wxSoundFileStream::StopProduction()
|
|||||||
void wxSoundFileStream::OnSoundEvent(int evt)
|
void wxSoundFileStream::OnSoundEvent(int evt)
|
||||||
{
|
{
|
||||||
size_t len = m_sndio->GetBestSize();
|
size_t len = m_sndio->GetBestSize();
|
||||||
char buffer[m_sndio->GetBestSize()];
|
char *buffer;
|
||||||
|
|
||||||
|
buffer = new char[m_sndio->GetBestSize()];
|
||||||
wxSoundStream::OnSoundEvent(evt);
|
wxSoundStream::OnSoundEvent(evt);
|
||||||
|
|
||||||
switch(evt) {
|
switch(evt) {
|
||||||
@@ -284,6 +290,7 @@ void wxSoundFileStream::OnSoundEvent(int evt)
|
|||||||
m_codec.Write(buffer, len);
|
m_codec.Write(buffer, len);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
delete[] buffer;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool wxSoundFileStream::SetSoundFormat(const wxSoundFormatBase& format)
|
bool wxSoundFileStream::SetSoundFormat(const wxSoundFormatBase& format)
|
||||||
|
@@ -9,10 +9,10 @@
|
|||||||
#pragma implementation "sndpcm.cpp"
|
#pragma implementation "sndpcm.cpp"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include <wx/wxprec.h>
|
||||||
#include "sndbase.h"
|
#include "sndbase.h"
|
||||||
#include "sndpcm.h"
|
#include "sndpcm.h"
|
||||||
|
|
||||||
|
|
||||||
wxSoundFormatPcm::wxSoundFormatPcm(wxUint32 srate, wxUint8 bps,
|
wxSoundFormatPcm::wxSoundFormatPcm(wxUint32 srate, wxUint8 bps,
|
||||||
wxUint16 nchannels, bool sign,
|
wxUint16 nchannels, bool sign,
|
||||||
int order)
|
int order)
|
||||||
|
@@ -9,6 +9,7 @@
|
|||||||
#pragma implementation "sndulaw.cpp"
|
#pragma implementation "sndulaw.cpp"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include <wx/wxprec.h>
|
||||||
#include "sndbase.h"
|
#include "sndbase.h"
|
||||||
#include "sndfile.h"
|
#include "sndfile.h"
|
||||||
#include "sndpcm.h"
|
#include "sndpcm.h"
|
||||||
|
@@ -9,10 +9,12 @@
|
|||||||
#pragma implementation "sndwav.cpp"
|
#pragma implementation "sndwav.cpp"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <wx/defs.h>
|
#include <wx/wxprec.h>
|
||||||
|
|
||||||
#include <wx/stream.h>
|
#include <wx/stream.h>
|
||||||
#include <wx/datstrm.h>
|
#include <wx/datstrm.h>
|
||||||
#include <wx/filefn.h>
|
#include <wx/filefn.h>
|
||||||
|
|
||||||
#include "sndbase.h"
|
#include "sndbase.h"
|
||||||
#include "sndcodec.h"
|
#include "sndcodec.h"
|
||||||
#include "sndfile.h"
|
#include "sndfile.h"
|
||||||
|
@@ -10,14 +10,16 @@
|
|||||||
#ifdef __GNUG__
|
#ifdef __GNUG__
|
||||||
#pragma implementation "vidbase.h"
|
#pragma implementation "vidbase.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include <wx/wxprec.h>
|
||||||
|
|
||||||
|
#ifndef WX_PRECOMP
|
||||||
|
#include <wx/stream.h>
|
||||||
#include <wx/wfstream.h>
|
#include <wx/wfstream.h>
|
||||||
#include "vidbase.h"
|
|
||||||
#ifdef WX_PRECOMP
|
|
||||||
#include "wx_prec.h"
|
|
||||||
#else
|
|
||||||
#include "wx/wx.h"
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include "vidbase.h"
|
||||||
|
|
||||||
#ifdef __BORLANDC__
|
#ifdef __BORLANDC__
|
||||||
#pragma hdrstop
|
#pragma hdrstop
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user