From 27088aa0060d4fac0694b693c5b4f256a18588e4 Mon Sep 17 00:00:00 2001 From: Matt Raykowski Date: Mon, 10 May 2010 20:39:16 -0500 Subject: [PATCH] Resolved: #876 Applied patch from Nille02 - typos in header move branch. --- code/nel/src/sound/driver/dsound/sound_driver_dsound.cpp | 3 ++- code/nel/src/sound/driver/xaudio2/music_channel_xaudio2.cpp | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/code/nel/src/sound/driver/dsound/sound_driver_dsound.cpp b/code/nel/src/sound/driver/dsound/sound_driver_dsound.cpp index 93a2e4f74..f4cb0749b 100644 --- a/code/nel/src/sound/driver/dsound/sound_driver_dsound.cpp +++ b/code/nel/src/sound/driver/dsound/sound_driver_dsound.cpp @@ -24,7 +24,7 @@ #endif #define DIRECTSOUND_VERSION 0x0800 -#include ".nel/sound/driver/sound_driver.h" +#include "nel/sound/driver/sound_driver.h" #include @@ -578,6 +578,7 @@ void CSoundDriverDSound::initDevice(const std::string &device, ISoundDriver::TSo } } + memset(ptr, 0, bytes); _PrimaryBuffer->Unlock(ptr, bytes, 0, 0); diff --git a/code/nel/src/sound/driver/xaudio2/music_channel_xaudio2.cpp b/code/nel/src/sound/driver/xaudio2/music_channel_xaudio2.cpp index 0285c99a6..7429f736b 100644 --- a/code/nel/src/sound/driver/xaudio2/music_channel_xaudio2.cpp +++ b/code/nel/src/sound/driver/xaudio2/music_channel_xaudio2.cpp @@ -25,7 +25,7 @@ #include #include #include -#include "music_buffer.h" +#include "nel/sound/driver/music_buffer.h" // Project includes #include "sound_driver_xaudio2.h"