Alex Henrie : mmdevapi: Report 100% volume in GetMasterVolumeLevelScalar stub.

Alexandre Julliard julliard at winehq.org
Fri Aug 7 10:42:27 CDT 2020


Module: wine
Branch: stable
Commit: 7d08c5781f5923c44d489254ff8811ea00e9230b
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=7d08c5781f5923c44d489254ff8811ea00e9230b

Author: Alex Henrie <alexhenrie24 at gmail.com>
Date:   Sun Mar 22 00:46:11 2020 -0600

mmdevapi: Report 100% volume in GetMasterVolumeLevelScalar stub.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=31890
Signed-off-by: Alex Henrie <alexhenrie24 at gmail.com>
Signed-off-by: Andrew Eikum <aeikum at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
(cherry picked from commit 3ea35e7ea1fce242d9242febe137de36add55ebb)
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>

---

 dlls/mmdevapi/audiovolume.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/dlls/mmdevapi/audiovolume.c b/dlls/mmdevapi/audiovolume.c
index 24d210a1c8..9214980120 100644
--- a/dlls/mmdevapi/audiovolume.c
+++ b/dlls/mmdevapi/audiovolume.c
@@ -159,7 +159,8 @@ static HRESULT WINAPI AEV_GetMasterVolumeLevelScalar(IAudioEndpointVolumeEx *ifa
     if (!level)
         return E_POINTER;
     FIXME("stub\n");
-    return E_NOTIMPL;
+    *level = 1.0;
+    return S_OK;
 }
 
 static HRESULT WINAPI AEV_SetChannelVolumeLevel(IAudioEndpointVolumeEx *iface, UINT chan, float leveldb, const GUID *ctx)




More information about the wine-cvs mailing list