Skip to content

Commit eb83787

Browse files
committed
Fix volume
1 parent 91a73b1 commit eb83787

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sound/sound.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ INT16 WINAPI OpenSound16(void)
6969
event = CreateEventA(NULL, FALSE, FALSE, NULL);
7070

7171
if (waveOutOpen(&wohand, WAVE_MAPPER, &wfmt, event, 0, CALLBACK_EVENT) != MMSYSERR_NOERROR) return S_SERDVNA;
72+
waveOutSetVolume(wohand, MAKELONG(0x1999, 0x1999)); /* 10% volume */
7273
queue = (NOTE *)HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, 32 * sizeof(NOTE));
7374
queuelen = 32 * sizeof(NOTE);
7475
playing = 0;

0 commit comments

Comments
 (0)