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
|
||||
#endif
|
||||
|
||||
#ifdef WX_PRECOMP
|
||||
#include "wx_prec.h"
|
||||
#else
|
||||
#include "wx/wx.h"
|
||||
#endif
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
typedef struct wxCDtime {
|
||||
wxUint8 track;
|
||||
|
@@ -14,11 +14,7 @@
|
||||
#include <windows.h>
|
||||
#include <stdio.h>
|
||||
#include <mmsystem.h>
|
||||
#ifdef WX_PRECOMP
|
||||
#include "wx/wxprec.h"
|
||||
#else
|
||||
#include "wx/wx.h"
|
||||
#endif
|
||||
#define WXMMEDIA_INTERNAL
|
||||
#include "cdbase.h"
|
||||
#include "cdwin.h"
|
||||
@@ -69,7 +65,6 @@ wxCDAudioWin::~wxCDAudioWin(void)
|
||||
void wxCDAudioWin::PrepareToc(void)
|
||||
{
|
||||
MCI_STATUS_PARMS status_struct;
|
||||
MCI_SET_PARMS set_struct;
|
||||
wxUint16 i, nb_m_trksize;
|
||||
wxCDtime total_time, *trk;
|
||||
DWORD ret, tmem;
|
||||
@@ -201,7 +196,7 @@ wxCDtime wxCDAudioWin::GetTime(void)
|
||||
return cd_time;
|
||||
}
|
||||
|
||||
wxCDAudio::CDtoc& wxCDAudioWin::GetToc(void)
|
||||
const wxCDAudio::CDtoc& wxCDAudioWin::GetToc(void)
|
||||
{
|
||||
return *m_toc;
|
||||
}
|
||||
|
@@ -14,11 +14,7 @@
|
||||
#pragma interface
|
||||
#endif
|
||||
|
||||
#ifdef WX_PRECOMP
|
||||
#include "wx/wxprec.h"
|
||||
#else
|
||||
#include "wx/wx.h"
|
||||
#endif
|
||||
#include "cdbase.h"
|
||||
|
||||
#ifdef WXMMEDIA_INTERNAL
|
||||
@@ -56,7 +52,7 @@ public:
|
||||
///
|
||||
virtual wxCDtime GetTime(void);
|
||||
///
|
||||
virtual CDtoc& GetToc(void);
|
||||
virtual const CDtoc& GetToc(void);
|
||||
///
|
||||
virtual inline bool Ok(void) const { return m_ok; }
|
||||
protected:
|
||||
|
@@ -24,6 +24,8 @@
|
||||
* Mountain View, California 94043
|
||||
*/
|
||||
|
||||
#include <wx/wxprec.h>
|
||||
|
||||
/*
|
||||
* g711.c
|
||||
*
|
||||
|
@@ -24,6 +24,8 @@
|
||||
* Mountain View, California 94043
|
||||
*/
|
||||
|
||||
#include <wx/wxprec.h>
|
||||
|
||||
/*
|
||||
* g721.c
|
||||
*
|
||||
|
@@ -37,6 +37,7 @@
|
||||
* of workstation attributes, such as hardware 2's complement arithmetic.
|
||||
*
|
||||
*/
|
||||
#include <wx/wxprec.h>
|
||||
#include "g72x.h"
|
||||
|
||||
/*
|
||||
|
@@ -45,6 +45,7 @@
|
||||
* the name of the module which it is implementing.
|
||||
*
|
||||
*/
|
||||
#include <wx/wxprec.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"
|
||||
#endif
|
||||
|
||||
#include <wx/defs.h>
|
||||
#include <wx/wxprec.h>
|
||||
|
||||
#include <wx/stream.h>
|
||||
#include <wx/datstrm.h>
|
||||
#include <wx/filefn.h>
|
||||
|
@@ -9,6 +9,7 @@
|
||||
#pragma implementation "sndbase.cpp"
|
||||
#endif
|
||||
|
||||
#include <wx/wxprec.h>
|
||||
#include "sndbase.h"
|
||||
|
||||
|
||||
|
@@ -9,6 +9,7 @@
|
||||
#pragma implementation "sndcodec.cpp"
|
||||
#endif
|
||||
|
||||
#include <wx/wxprec.h>
|
||||
#include "sndbase.h"
|
||||
#include "sndcodec.h"
|
||||
|
||||
|
@@ -9,6 +9,7 @@
|
||||
#pragma implementation "sndcpcm.cpp"
|
||||
#endif
|
||||
|
||||
#include <wx/wxprec.h>
|
||||
#include "sndbase.h"
|
||||
#include "sndpcm.h"
|
||||
#include "sndcpcm.h"
|
||||
|
@@ -5,7 +5,12 @@
|
||||
// Author: Guilhem Lavaux <lavaux@easynet.fr> (C) 1999
|
||||
// CVSID: $Id$
|
||||
// --------------------------------------------------------------------------
|
||||
#include <wx/wxprec.h>
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include <wx/stream.h>
|
||||
#endif
|
||||
|
||||
#include "sndbase.h"
|
||||
#include "sndcodec.h"
|
||||
#include "sndfile.h"
|
||||
@@ -258,8 +263,9 @@ bool wxSoundFileStream::StopProduction()
|
||||
void wxSoundFileStream::OnSoundEvent(int evt)
|
||||
{
|
||||
size_t len = m_sndio->GetBestSize();
|
||||
char buffer[m_sndio->GetBestSize()];
|
||||
char *buffer;
|
||||
|
||||
buffer = new char[m_sndio->GetBestSize()];
|
||||
wxSoundStream::OnSoundEvent(evt);
|
||||
|
||||
switch(evt) {
|
||||
@@ -284,6 +290,7 @@ void wxSoundFileStream::OnSoundEvent(int evt)
|
||||
m_codec.Write(buffer, len);
|
||||
break;
|
||||
}
|
||||
delete[] buffer;
|
||||
}
|
||||
|
||||
bool wxSoundFileStream::SetSoundFormat(const wxSoundFormatBase& format)
|
||||
|
@@ -9,10 +9,10 @@
|
||||
#pragma implementation "sndpcm.cpp"
|
||||
#endif
|
||||
|
||||
#include <wx/wxprec.h>
|
||||
#include "sndbase.h"
|
||||
#include "sndpcm.h"
|
||||
|
||||
|
||||
wxSoundFormatPcm::wxSoundFormatPcm(wxUint32 srate, wxUint8 bps,
|
||||
wxUint16 nchannels, bool sign,
|
||||
int order)
|
||||
|
@@ -9,6 +9,7 @@
|
||||
#pragma implementation "sndulaw.cpp"
|
||||
#endif
|
||||
|
||||
#include <wx/wxprec.h>
|
||||
#include "sndbase.h"
|
||||
#include "sndfile.h"
|
||||
#include "sndpcm.h"
|
||||
|
@@ -9,10 +9,12 @@
|
||||
#pragma implementation "sndwav.cpp"
|
||||
#endif
|
||||
|
||||
#include <wx/defs.h>
|
||||
#include <wx/wxprec.h>
|
||||
|
||||
#include <wx/stream.h>
|
||||
#include <wx/datstrm.h>
|
||||
#include <wx/filefn.h>
|
||||
|
||||
#include "sndbase.h"
|
||||
#include "sndcodec.h"
|
||||
#include "sndfile.h"
|
||||
|
@@ -10,14 +10,16 @@
|
||||
#ifdef __GNUG__
|
||||
#pragma implementation "vidbase.h"
|
||||
#endif
|
||||
|
||||
#include <wx/wxprec.h>
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include <wx/stream.h>
|
||||
#include <wx/wfstream.h>
|
||||
#include "vidbase.h"
|
||||
#ifdef WX_PRECOMP
|
||||
#include "wx_prec.h"
|
||||
#else
|
||||
#include "wx/wx.h"
|
||||
#endif
|
||||
|
||||
#include "vidbase.h"
|
||||
|
||||
#ifdef __BORLANDC__
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user