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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user