From ec66d7c7721e9dbc6dc1997b62590bb25a5ca6df Mon Sep 17 00:00:00 2001 From: Brandarius Date: Fri, 8 May 2026 17:22:15 -0500 Subject: [PATCH] openal_backend.jl find_openal was returning a vector. changed it to a string and now it pulls --- Manifest.toml | 4 ++-- src/audio/openal_backend.jl | 8 +++++++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/Manifest.toml b/Manifest.toml index ee0395a..543e0c3 100644 --- a/Manifest.toml +++ b/Manifest.toml @@ -1,8 +1,8 @@ # This file is machine-generated - editing it directly is not advised -julia_version = "1.12.4" +julia_version = "1.12.6" manifest_format = "2.0" -project_hash = "07380e900bee0ff1dca3605ab11da64338464d42" +project_hash = "05920b917316b6a3e2c70813a1374f403333524c" [[deps.Accessors]] deps = ["CompositionsBase", "ConstructionBase", "Dates", "InverseFunctions", "MacroTools"] diff --git a/src/audio/openal_backend.jl b/src/audio/openal_backend.jl index 7ca28aa..e7df46c 100644 --- a/src/audio/openal_backend.jl +++ b/src/audio/openal_backend.jl @@ -29,7 +29,8 @@ const AL_FALSE = Int32(0) function find_openal()::String if OpenAL_jll.is_available() - return OpenAL_jll.libopenal_path + paths = OpenAL_jll.libopenal_path + return paths isa Vector ? first(paths) : paths end system_names = if Sys.iswindows() @@ -39,6 +40,11 @@ function find_openal()::String else ["libopenal.so", "libopenal.so.1"] end + for name in system_names + found = Sys.which(name) + found !== nothing && return found + end + error("OpenAl not found. Install OpenAl or OpenAL Soft") end const libopenal = find_openal()