From 5ebcd73d9cc8183233b078ab9f4afe40e0b425d8 Mon Sep 17 00:00:00 2001 From: RadWolfie Date: Mon, 1 Jul 2019 21:23:57 -0500 Subject: [PATCH] Interface default creation to InitVoiceProperties function. --- src/core/hle/DSOUND/DirectSound/DirectSoundInline.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/hle/DSOUND/DirectSound/DirectSoundInline.hpp b/src/core/hle/DSOUND/DirectSound/DirectSoundInline.hpp index bd2295d7f..6a66c5e4f 100644 --- a/src/core/hle/DSOUND/DirectSound/DirectSoundInline.hpp +++ b/src/core/hle/DSOUND/DirectSound/DirectSoundInline.hpp @@ -579,7 +579,8 @@ inline void DSound3DBufferCreate(LPDIRECTSOUNDBUFFER8 pDSBuffer, LPDIRECTSOUND3D pThis->Xb_Volume = 0L; \ pThis->Xb_VolumeMixbin = 0L; \ pThis->Xb_dwHeadroom = 600; /* default for 2D voice */ \ - pThis->Xb_EnvolopeDesc = { 0 }; + pThis->Xb_EnvolopeDesc = { 0 }; \ + InitVoiceProperties(pThis->Xb_VoiceProperties); /* The rest will initialize in GeneratePCMFormat to GenerateMixBinDefault. */ //pThis->EmuBufferDesc = { 0 }; // Enable this when become necessary. /* pThis->EmuLockPtr1 = xbnullptr; \