Module: wine Branch: master Commit: 2251f1cea1a2670d1d615bddd036b0e1b56675a5 URL: https://gitlab.winehq.org/wine/wine/-/commit/2251f1cea1a2670d1d615bddd036b0e...
Author: Biswapriyo Nath nathbappai@gmail.com Date: Mon Jul 15 19:53:28 2024 +0000
include: Fix return type of IXAudio2MasteringVoice::GetChannelMask in xaudio2.idl.
---
dlls/xaudio2_7/xaudio_dll.c | 4 ++-- include/xaudio2.idl | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/xaudio2_7/xaudio_dll.c b/dlls/xaudio2_7/xaudio_dll.c index a51bb499793..43537589823 100644 --- a/dlls/xaudio2_7/xaudio_dll.c +++ b/dlls/xaudio2_7/xaudio_dll.c @@ -1353,14 +1353,14 @@ static void WINAPI XA2M_DestroyVoice(IXAudio2MasteringVoice *iface) }
#if XAUDIO2_VER >= 8 -static void WINAPI XA2M_GetChannelMask(IXAudio2MasteringVoice *iface, +static HRESULT WINAPI XA2M_GetChannelMask(IXAudio2MasteringVoice *iface, DWORD *pChannelMask) { XA2VoiceImpl *This = impl_from_IXAudio2MasteringVoice(iface);
TRACE("%p, %p\n", This, pChannelMask);
- FAudioMasteringVoice_GetChannelMask(This->faudio_voice, (uint32_t *)pChannelMask); + return FAudioMasteringVoice_GetChannelMask(This->faudio_voice, (uint32_t *)pChannelMask); } #endif
diff --git a/include/xaudio2.idl b/include/xaudio2.idl index b07c562914b..5f73ced16e5 100644 --- a/include/xaudio2.idl +++ b/include/xaudio2.idl @@ -459,7 +459,7 @@ interface IXAudio2SubmixVoice : IXAudio2Voice interface IXAudio2MasteringVoice : IXAudio2Voice { #if XAUDIO2_VER >= 8 - void GetChannelMask([out] DWORD *pChannelMask); + HRESULT GetChannelMask([out] DWORD *pChannelMask); #endif }