Skip to content

Commit 8ff30f8

Browse files
fuel-pcboxevmar
authored andcommitted
WINMM: Neither ReactOS nor Wine do this check in waveOutOpen, and it breaks some demoscene software. Remove
1 parent f704a9e commit 8ff30f8

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

win32/dll/winmm/src/wave.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -200,12 +200,6 @@ pub fn waveOutOpen(
200200
dwInstance: u32,
201201
fdwOpen: WaveOutOpenFlags,
202202
) -> MMRESULT {
203-
if !get_state(sys).audio_enabled {
204-
// Note that pocoman doesn't call waveOutGetNumDevs, but just directly calls
205-
// waveOutOpen and decides whether to do sound based on whether it succeeds.
206-
return MMRESULT::MMSYSERR_NOTENABLED;
207-
}
208-
209203
let host_ready = Event::new(Some("winmm host ready".into()), false, true);
210204

211205
let fmt = pwfx.unwrap();

0 commit comments

Comments
 (0)