Skip to content

Commit 5e4f324

Browse files
committed
update OpenAL-Soft to 1.24.3.
1 parent 375c6f8 commit 5e4f324

File tree

322 files changed

+54315
-12814
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

322 files changed

+54315
-12814
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ set(MEGA_LIBTHEORA_VER "1.1.1")
228228
set(MEGA_FREETYPE_VER "2.13.2")
229229
set(MEGA_SDL2_VER "2.28.5")
230230
set(MEGA_SDL3_VER "3.2.10")
231-
set(MEGA_OPENAL_VER "1.23.1-bc7cb17")
231+
set(MEGA_OPENAL_VER "1.24.3")
232232
set(MEGA_MODPLUG_VER "0.8.8.4")
233233

234234
set(SKIP_INSTALL_ALL TRUE)

libs/openal-soft/.clang-tidy

Lines changed: 180 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,180 @@
1+
---
2+
Checks: '-*,
3+
bugprone-argument-comment,
4+
bugprone-assert-side-effect,
5+
bugprone-assignment-in-if-condition,
6+
bugprone-bad-signal-to-kill-thread,
7+
bugprone-bool-pointer-implicit-conversion,
8+
bugprone-casting-through-void,
9+
bugprone-chained-comparison,
10+
bugprone-compare-pointer-to-member-virtual-function,
11+
bugprone-copy-constructor-init,
12+
bugprone-crtp-constructor-accessibility,
13+
bugprone-dangling-handle,
14+
bugprone-dynamic-static-initializers,
15+
bugprone-fold-init-type,
16+
bugprone-forward-declaration-namespace,
17+
bugprone-forwarding-reference-overload,
18+
bugprone-implicit-widening-of-multiplication-result,
19+
bugprone-inaccurate-erase,
20+
bugprone-incorrect-*,
21+
bugprone-infinite-loop,
22+
bugprone-integer-division,
23+
bugprone-lambda-function-name,
24+
bugprone-macro-repeated-side-effects,
25+
bugprone-misplaced-*,
26+
bugprone-move-forwarding-reference,
27+
bugprone-multi-level-implicit-pointer-conversion,
28+
bugprone-multiple-*,
29+
bugprone-narrowing-conversions,
30+
bugprone-no-escape,
31+
bugprone-non-zero-enum-to-bool-conversion,
32+
bugprone-not-null-terminated-result,
33+
bugprone-optional-value-conversion,
34+
bugprone-parent-virtual-call,
35+
bugprone-pointer-arithmetic-on-polymorphic-object,
36+
bugprone-posix-return,
37+
bugprone-redundant-branch-condition,
38+
bugprone-reserved-identifier,
39+
bugprone-return-const-ref-from-parameter,
40+
bugprone-shared-ptr-array-mismatch,
41+
bugprone-signal-handler,
42+
bugprone-signed-char-misuse,
43+
bugprone-sizeof-*,
44+
bugprone-spuriously-wake-up-functions,
45+
bugprone-standalone-empty,
46+
bugprone-string-*,
47+
bugprone-stringview-nullptr,
48+
bugprone-suspicious-*,
49+
bugprone-swapped-arguments,
50+
bugprone-terminating-continue,
51+
bugprone-throw-keyword-missing,
52+
bugprone-too-small-loop-variable,
53+
bugprone-undefined-memory-manipulation,
54+
bugprone-undelegated-constructor,
55+
bugprone-unhandled-*,
56+
bugprone-unique-ptr-array-mismatch,
57+
bugprone-unsafe-functions,
58+
bugprone-unused-*,
59+
bugprone-use-after-move,
60+
bugprone-virtual-near-miss,
61+
cert-dcl50-cpp,
62+
cert-dcl58-cpp,
63+
cert-env33-c,
64+
cert-err34-c,
65+
cert-err52-cpp,
66+
cert-err60-cpp,
67+
cert-flp30-c,
68+
cert-mem57-cpp,
69+
clang-analyzer-apiModeling.*,
70+
clang-analyzer-core.*,
71+
clang-analyzer-cplusplus.*,
72+
clang-analyzer-deadcode.DeadStores,
73+
clang-analyzer-fuchsia.HandleChecker,
74+
clang-analyzer-nullability.*,
75+
clang-analyzer-optin.*,
76+
clang-analyzer-osx.*,
77+
clang-analyzer-security.FloatLoopCounter,
78+
clang-analyzer-security.PutenvStackArray,
79+
clang-analyzer-security.SetgidSetuidOrder,
80+
clang-analyzer-security.cert.env.InvalidPtr,
81+
clang-analyzer-security.insecureAPI.SecuritySyntaxChecker,
82+
clang-analyzer-security.insecureAPI.UncheckedReturn,
83+
clang-analyzer-security.insecureAPI.bcmp,
84+
clang-analyzer-security.insecureAPI.bcopy,
85+
clang-analyzer-security.insecureAPI.bzero,
86+
clang-analyzer-security.insecureAPI.decodeValueOfObjCType,
87+
clang-analyzer-security.insecureAPI.getpw,
88+
clang-analyzer-security.insecureAPI.gets,
89+
clang-analyzer-security.insecureAPI.mkstemp,
90+
clang-analyzer-security.insecureAPI.mktemp,
91+
clang-analyzer-security.insecureAPI.rand,
92+
clang-analyzer-security.insecureAPI.strcpy,
93+
clang-analyzer-security.insecureAPI.vfork,
94+
clang-analyzer-unix.*,
95+
clang-analyzer-valist.*,
96+
clang-analyzer-webkit.*,
97+
concurrency-thread-canceltype-asynchronous,
98+
cppcoreguidelines-avoid-capturing-lambda-coroutines,
99+
cppcoreguidelines-avoid-c-arrays,
100+
cppcoreguidelines-avoid-goto,
101+
cppcoreguidelines-avoid-reference-coroutine-parameters,
102+
cppcoreguidelines-c-copy-assignment-signature,
103+
cppcoreguidelines-explicit-virtual-functions,
104+
cppcoreguidelines-interfaces-global-init,
105+
cppcoreguidelines-narrowing-conversions,
106+
cppcoreguidelines-no-malloc,
107+
cppcoreguidelines-no-suspend-with-lock,
108+
cppcoreguidelines-owning-memory,
109+
cppcoreguidelines-prefer-member-initializer,
110+
cppcoreguidelines-pro-bounds-array-to-pointer-decay,
111+
cppcoreguidelines-pro-bounds-pointer-arithmetic,
112+
cppcoreguidelines-pro-type-const-cast,
113+
cppcoreguidelines-pro-type-cstyle-cast,
114+
cppcoreguidelines-pro-type-member-init,
115+
cppcoreguidelines-pro-type-static-cast-downcast,
116+
cppcoreguidelines-pro-type-union-access,
117+
cppcoreguidelines-pro-type-vararg,
118+
cppcoreguidelines-slicing,
119+
cppcoreguidelines-virtual-class-destructor,
120+
google-build-explicit-make-pair,
121+
google-default-arguments,
122+
google-explicit-constructor,
123+
hicpp-exception-baseclass,
124+
misc-confusable-identifiers,
125+
misc-coroutine-hostile-raii,
126+
misc-misleading-*,
127+
misc-non-copyable-objects,
128+
misc-throw-by-value-catch-by-reference,
129+
misc-uniqueptr-reset-release,
130+
modernize-avoid-*,
131+
modernize-concat-nested-namespaces,
132+
modernize-deprecated-*,
133+
modernize-loop-convert,
134+
modernize-macro-to-enum,
135+
modernize-make-*,
136+
modernize-pass-by-value,
137+
modernize-raw-string-literal,
138+
modernize-redundant-void-arg,
139+
modernize-replace-*,
140+
modernize-return-braced-init-list,
141+
modernize-shrink-to-fit,
142+
modernize-unary-static-assert,
143+
modernize-use-auto,
144+
modernize-use-bool-literals,
145+
modernize-use-default-member-init,
146+
modernize-use-emplace,
147+
modernize-use-equals-*,
148+
modernize-use-nodiscard,
149+
modernize-use-noexcept,
150+
modernize-use-nullptr,
151+
modernize-use-override,
152+
modernize-use-transparent-functors,
153+
modernize-use-uncaught-exceptions,
154+
modernize-use-using,
155+
performance-faster-string-find,
156+
performance-for-range-copy,
157+
performance-inefficient-*,
158+
performance-move-constructor-init,
159+
performance-noexcept-destructor,
160+
performance-noexcept-swap,
161+
performance-unnecessary-copy-initialization,
162+
portability-restrict-system-includes,
163+
portability-std-allocator-const,
164+
readability-const-return-type,
165+
readability-container-contains,
166+
readability-container-size-empty,
167+
readability-convert-member-functions-to-static,
168+
readability-delete-null-pointer,
169+
readability-duplicate-include,
170+
readability-else-after-return,
171+
readability-inconsistent-declaration-parameter-name,
172+
readability-make-member-function-const,
173+
readability-misleading-indentation,
174+
readability-misplaced-array-index,
175+
readability-redundant-*,
176+
readability-simplify-subscript-expr,
177+
readability-static-definition-in-anonymous-namespace,
178+
readability-string-compare,
179+
readability-uniqueptr-delete-release,
180+
readability-use-*'

libs/openal-soft/.github/workflows/ci.yml

Lines changed: 98 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,35 @@ jobs:
106106
libdbus-1-dev",
107107
build_type: "Release"
108108
}
109-
109+
- {
110+
name: "Android_armeabi-v7a-Release",
111+
os: ubuntu-latest,
112+
cmake_opts: "-DCMAKE_TOOLCHAIN_FILE=$ANDROID_NDK_HOME/build/cmake/android.toolchain.cmake \
113+
-DALSOFT_EMBED_HRTF_DATA=TRUE \
114+
-DALSOFT_REQUIRE_OPENSL=ON",
115+
build_type: "Release"
116+
}
117+
- {
118+
name: "Android_arm64-v8a-Release",
119+
os: ubuntu-latest,
120+
cmake_opts: "-DANDRIOD_ABI=arm64-v8a \
121+
-DANDROID_PLATFORM=25 \
122+
-DCMAKE_TOOLCHAIN_FILE=$ANDROID_NDK_HOME/build/cmake/android.toolchain.cmake \
123+
-DALSOFT_EMBED_HRTF_DATA=TRUE \
124+
-DALSOFT_REQUIRE_OPENSL=ON",
125+
build_type: "Release"
126+
}
110127
steps:
111-
- uses: actions/checkout@v3
128+
- uses: actions/checkout@v4
129+
with:
130+
fetch-depth: '0'
131+
132+
- name: Get current commit tag, short hash, count and date
133+
run: |
134+
echo "CommitTag=$(git describe --tags --abbrev=0 --match *.*.*)" >> $env:GITHUB_ENV
135+
echo "CommitHashShort=$(git rev-parse --short=8 HEAD)" >> $env:GITHUB_ENV
136+
echo "CommitCount=$(git rev-list --count $env:GITHUB_REF_NAME)" >> $env:GITHUB_ENV
137+
echo "CommitDate=$(git show -s --date=iso-local --format=%cd)" >> $env:GITHUB_ENV
112138
113139
- name: Install Dependencies
114140
shell: bash
@@ -133,8 +159,8 @@ jobs:
133159
cd build
134160
ctest
135161
136-
- name: Create Archive
137-
if: ${{ matrix.config.os == 'windows-latest' }}
162+
- name: Set up Windows artifacts
163+
if: ${{ contains(matrix.config.name, 'Win') }}
138164
shell: bash
139165
run: |
140166
cd build
@@ -143,10 +169,74 @@ jobs:
143169
cp ${{matrix.config.build_type}}/soft_oal.dll archive
144170
cp ${{matrix.config.build_type}}/OpenAL32.dll archive/router
145171
146-
- name: Upload Archive
147-
# Upload package as an artifact of this workflow.
148-
uses: actions/upload-artifact@v3.1.2
149-
if: ${{ matrix.config.os == 'windows-latest' }}
172+
- name: Set up Android artifacts
173+
if: ${{ contains(matrix.config.name, 'Android') }}
174+
shell: bash
175+
run: |
176+
cd build
177+
mkdir archive
178+
cp ${{github.workspace}}/build/libopenal.so archive/
179+
180+
- name: Upload build as a workflow artifact
181+
uses: actions/upload-artifact@v4
182+
if: ${{ contains(matrix.config.name, 'Win') || contains(matrix.config.name, 'Android') }}
150183
with:
151184
name: soft_oal-${{matrix.config.name}}
152185
path: build/archive
186+
187+
outputs:
188+
CommitTag: ${{env.CommitTag}}
189+
CommitHashShort: ${{env.CommitHashShort}}
190+
CommitCount: ${{env.CommitCount}}
191+
CommitDate: ${{env.CommitDate}}
192+
193+
release:
194+
if: github.event_name != 'pull_request'
195+
needs: build
196+
runs-on: ubuntu-latest
197+
steps:
198+
199+
- name: Download build artifacts
200+
uses: actions/download-artifact@v4.1.7
201+
with:
202+
path: "build"
203+
pattern: "*-Win??-Release"
204+
github-token: "${{secrets.GITHUB_TOKEN}}"
205+
206+
- name: Set up build folders
207+
run: |
208+
mkdir -p build/release/OpenALSoft/Documentation
209+
mkdir -p build/release/OpenALSoft/Win32
210+
mkdir -p build/release/OpenALSoft/Win64
211+
echo "${{github.repository}}" >> "build/release/OpenALSoft/Documentation/Version.txt"
212+
echo "v${{needs.build.outputs.CommitTag}}-${{needs.build.outputs.CommitHashShort}} ${{github.ref_name}}" >> "build/release/OpenALSoft/Documentation/Version.txt"
213+
echo "Commit #${{needs.build.outputs.CommitCount}}" >> "build/release/OpenALSoft/Documentation/Version.txt"
214+
echo "${{needs.build.outputs.CommitDate}}" >> "build/release/OpenALSoft/Documentation/Version.txt"
215+
curl https://raw.githubusercontent.com/${{github.repository}}/${{github.ref_name}}/README.md -o "build/release/OpenALSoft/Documentation/ReadMe.txt"
216+
curl https://raw.githubusercontent.com/${{github.repository}}/${{github.ref_name}}/ChangeLog -o "build/release/OpenALSoft/Documentation/ChangeLog.txt"
217+
curl https://raw.githubusercontent.com/${{github.repository}}/${{github.ref_name}}/COPYING -o "build/release/OpenALSoft/Documentation/License.txt"
218+
curl https://raw.githubusercontent.com/${{github.repository}}/${{github.ref_name}}/BSD-3Clause -o "build/release/OpenALSoft/Documentation/License_BSD-3Clause.txt"
219+
curl https://raw.githubusercontent.com/${{github.repository}}/${{github.ref_name}}/LICENSE-pffft -o "build/release/OpenALSoft/Documentation/License_PFFFT.txt"
220+
curl https://raw.githubusercontent.com/${{github.repository}}/${{github.ref_name}}/alsoftrc.sample -o "build/release/OpenALSoft/Win32/alsoft.ini"
221+
curl https://raw.githubusercontent.com/${{github.repository}}/${{github.ref_name}}/alsoftrc.sample -o "build/release/OpenALSoft/Win64/alsoft.ini"
222+
cp "build/soft_oal-Win32-Release/soft_oal.dll" "build/release/OpenALSoft/Win32/OpenAL32.dll"
223+
cp "build/soft_oal-Win64-Release/soft_oal.dll" "build/release/OpenALSoft/Win64/OpenAL32.dll"
224+
cp -r "build/release/OpenALSoft" "build/release/OpenALSoft+HRTF"
225+
cp "build/release/OpenALSoft+HRTF/Win32/alsoft.ini" "build/release/OpenALSoft+HRTF/Documentation/alsoft.ini"
226+
curl https://raw.githubusercontent.com/${{github.repository}}/${{github.ref_name}}/configs/HRTF/alsoft.ini -o "build/release/OpenALSoft+HRTF/Win32/alsoft.ini"
227+
cp "build/release/OpenALSoft+HRTF/Win32/alsoft.ini" "build/release/OpenALSoft+HRTF/Win64/alsoft.ini"
228+
229+
- name: Compress artifacts
230+
run: |
231+
cd build/release
232+
7z a OpenALSoft.zip ./OpenALSoft/*
233+
7z a OpenALSoft+HRTF.zip ./OpenALSoft+HRTF/*
234+
235+
- name: GitHub pre-release
236+
uses: "Sweeistaken/sweelease@v1.1"
237+
with:
238+
repo_token: "${{secrets.GITHUB_TOKEN}}"
239+
automatic_release_tag: "latest"
240+
prerelease: true
241+
title: "OpenAL Soft v${{needs.build.outputs.CommitTag}}-${{needs.build.outputs.CommitHashShort}}"
242+
files: "build/release/*"

0 commit comments

Comments
 (0)