sysaudio: link missing library for Windows (#493)

This commit is contained in:
NewbLuck 2022-08-30 00:39:01 -06:00 committed by GitHub
parent 5d565f1f74
commit d9bd4d7d79
Failed to generate hash of commit

View file

@ -115,6 +115,7 @@ fn buildSoundIo(b: *Builder, mode: std.builtin.Mode, target: std.zig.CrossTarget
config_file.writeAll("#define SOUNDIO_HAVE_ALSA\n") catch unreachable;
} else if (target_info.os.tag == .windows) {
lib.addCSourceFile(soundio_path ++ "/src/wasapi.c", &.{});
lib.linkSystemLibrary("ole32");
config_file.writeAll("#define SOUNDIO_HAVE_WASAPI\n") catch unreachable;
}