From 3cc5028486b98be7107ef36cb2af7308d2490fb4 Mon Sep 17 00:00:00 2001 From: "Adam D. Ruppe" Date: Tue, 27 Aug 2024 10:19:32 -0400 Subject: [PATCH] new dmd compat --- simpleaudio.d | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/simpleaudio.d b/simpleaudio.d index 39490fa..eac7447 100644 --- a/simpleaudio.d +++ b/simpleaudio.d @@ -1777,7 +1777,10 @@ final class AudioPcmOutThreadImplementation : Thread { public void unsuspend() { suspended_ = false; suspendWanted = false; - event.set(); + static if(__traits(hasMember, event, "setIfInitialized")) + event.setIfInitialized(); + else + event.set(); } /// ditto