summaryrefslogtreecommitdiff
path: root/src/T2DLL/T2SoundPlayer.cpp
diff options
context:
space:
mode:
authorAsh Wolf <ninji@wuffs.org>2023-07-09 20:59:16 +0100
committerAsh Wolf <ninji@wuffs.org>2023-07-09 20:59:16 +0100
commitc920fe38a19013b99f3f74e48da9724fb053c212 (patch)
tree6bb036fd3f61b85daceb26f74378eadcdd977db1 /src/T2DLL/T2SoundPlayer.cpp
parent96a63139221587c6be9659c1e07eacd3a8e7f048 (diff)
downloadt2win-c920fe38a19013b99f3f74e48da9724fb053c212.tar.gz
t2win-c920fe38a19013b99f3f74e48da9724fb053c212.zip
support building from VC++ IDE, add resources
Diffstat (limited to '')
-rw-r--r--src/T2DLL/T2SoundPlayer.cpp7
1 files changed, 4 insertions, 3 deletions
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);