From 22d6973de5814a6229fb665a43882df1eb140048 Mon Sep 17 00:00:00 2001 From: Bendegúz Nagy Date: Mon, 1 Aug 2016 15:24:47 +0200 Subject: DM: Add sound loading --- engines/dm/dm.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'engines/dm/dm.cpp') diff --git a/engines/dm/dm.cpp b/engines/dm/dm.cpp index 852145056a..50afa43a8c 100644 --- a/engines/dm/dm.cpp +++ b/engines/dm/dm.cpp @@ -202,6 +202,9 @@ DMEngine::~DMEngine() { delete _projexpl; delete _dialog; + for (uint16 i = 0; i < k34_D13_soundCount; ++i) + delete[] _gK24_soundData[i]._firstSample; + // clear debug channels DebugMan.clearAllDebugChannels(); } @@ -227,7 +230,8 @@ void DMEngine::f463_initializeGame() { _displayMan->loadPalette(g21_PalDungeonView[0]); _displayMan->f94_loadFloorSet(k0_FloorSetStone); _displayMan->f95_loadWallSet(k0_WallSetStone); - + f503_loadSounds(); + warning(false, "MISSING CODE: F0437_STARTEND_DrawTitle"); _textMan->f54_textInitialize(); _objectMan->loadObjectNames(); _eventMan->initMouse(); @@ -697,5 +701,4 @@ void DMEngine::f439_drawEntrance() { _displayMan->f21_blitToScreen(_g562_entranceDoorAnimSteps[4], &G0011_s_Graphic562_Box_Entrance_ClosedDoorRight, k64_byteWidth, kM1_ColorNoTransparency, 161); warning(false, "MISSING CODE: F0436_STARTEND_FadeToPalette(g20_PalEntrance);"); } - } // End of namespace DM -- cgit v1.2.3