From c920fe38a19013b99f3f74e48da9724fb053c212 Mon Sep 17 00:00:00 2001 From: Ash Wolf Date: Sun, 9 Jul 2023 20:59:16 +0100 Subject: support building from VC++ IDE, add resources --- src/T2DLL/T2SoundPlayer.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/T2DLL/T2SoundPlayer.cpp') diff --git a/src/T2DLL/T2SoundPlayer.cpp b/src/T2DLL/T2SoundPlayer.cpp index 523b741..b332949 100644 --- a/src/T2DLL/T2SoundPlayer.cpp +++ b/src/T2DLL/T2SoundPlayer.cpp @@ -1,7 +1,8 @@ +#include "StdAfx.h" #include "GlobalFunc.h" #include "T2SoundPlayer.h" -#include "T2TowerDoc.h" -#include "T2TowerMainView.h" +#include "../T2TowerDoc.h" +#include "../T2TowerMainView.h" #include "Wave.h" BEGIN_MESSAGE_MAP(T2SoundPlayer, CWnd) @@ -118,7 +119,7 @@ BOOL T2SoundPlayer::LoadSound(T2SoundObjItem* inItem, const CString& inName, CWa mDirectSound->CreateSoundBuffer(&desc, &inItem->mDSBuffers[0], NULL); - inItem->mDSBuffers[0]->Lock(0, waveDataLength, &waveDataPtr, &waveDataLength, NULL, NULL, 0); + inItem->mDSBuffers[0]->Lock(0, waveDataLength, (void **) &waveDataPtr, &waveDataLength, NULL, NULL, 0); waveDataLength = inWave.GetData(waveDataPtr, waveDataLength); inItem->mDSBuffers[0]->Unlock(waveDataPtr, waveDataLength, NULL, 0); -- cgit v1.2.3