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:
Guilhem Lavaux
1999-08-17 17:51:33 +00:00
parent 8b17ba727c
commit 6c5e63761c
17 changed files with 140 additions and 25 deletions

View File

@@ -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)