From 062425aee43919f8b6bd6c653dba01b099819a84 Mon Sep 17 00:00:00 2001 From: Jerry Jenkins Date: Tue, 17 Sep 2002 01:29:01 +0000 Subject: [PATCH] Added waveOutSetVolume when opening sound driver. Otherwise, there is no sound if we use aRts. --- dlls/dsound/dsound_main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dlls/dsound/dsound_main.c b/dlls/dsound/dsound_main.c index 8a8eb766d13..c8192bc0e02 100644 --- a/dlls/dsound/dsound_main.c +++ b/dlls/dsound/dsound_main.c @@ -668,6 +668,9 @@ HRESULT WINAPI DirectSoundCreate8(REFGUID lpGUID,LPDIRECTSOUND8 *ppDS,IUnknown * } (*ippDS)->drvdesc.dnDevNode--; /* take away last increment */ + + /* for aRts sound server */ + if (err == DS_OK) waveOutSetVolume( (*ippDS)->drvdesc.dnDevNode, 0xFFFFFFFFL ); } if (drv && (err == DS_OK))