Skip to content

Commit c3f1322

Browse files
committed
update new openal 1.24.2-1
1 parent 926ab19 commit c3f1322

File tree

376 files changed

+77408
-31277
lines changed

Some content is hidden

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

376 files changed

+77408
-31277
lines changed

.adv/OpenAL Extension for GNU Windows.aip

Lines changed: 0 additions & 221 deletions
This file was deleted.

.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-*'

.github/workflows/ci.yml

Lines changed: 136 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: CI
22

3-
on: [push]
3+
on: [push, pull_request]
44

55
jobs:
66
build:
@@ -14,6 +14,7 @@ jobs:
1414
name: "Win32-Release",
1515
os: windows-latest,
1616
cmake_opts: "-A Win32 \
17+
-DALSOFT_TESTS=ON \
1718
-DALSOFT_BUILD_ROUTER=ON \
1819
-DALSOFT_REQUIRE_WINMM=ON \
1920
-DALSOFT_REQUIRE_DSOUND=ON \
@@ -24,6 +25,7 @@ jobs:
2425
name: "Win32-Debug",
2526
os: windows-latest,
2627
cmake_opts: "-A Win32 \
28+
-DALSOFT_TESTS=ON \
2729
-DALSOFT_BUILD_ROUTER=ON \
2830
-DALSOFT_REQUIRE_WINMM=ON \
2931
-DALSOFT_REQUIRE_DSOUND=ON \
@@ -34,6 +36,7 @@ jobs:
3436
name: "Win64-Release",
3537
os: windows-latest,
3638
cmake_opts: "-A x64 \
39+
-DALSOFT_TESTS=ON \
3740
-DALSOFT_BUILD_ROUTER=ON \
3841
-DALSOFT_REQUIRE_WINMM=ON \
3942
-DALSOFT_REQUIRE_DSOUND=ON \
@@ -44,16 +47,42 @@ jobs:
4447
name: "Win64-Debug",
4548
os: windows-latest,
4649
cmake_opts: "-A x64 \
50+
-DALSOFT_TESTS=ON \
4751
-DALSOFT_BUILD_ROUTER=ON \
4852
-DALSOFT_REQUIRE_WINMM=ON \
4953
-DALSOFT_REQUIRE_DSOUND=ON \
5054
-DALSOFT_REQUIRE_WASAPI=ON",
5155
build_type: "Debug"
5256
}
57+
- {
58+
name: "Win64-UWP",
59+
os: windows-latest,
60+
cmake_opts: "-A x64 \
61+
-DALSOFT_TESTS=OFF \
62+
-DCMAKE_SYSTEM_NAME=WindowsStore \
63+
\"-DCMAKE_SYSTEM_VERSION=10.0\" \
64+
-DALSOFT_BUILD_ROUTER=ON \
65+
-DALSOFT_REQUIRE_WASAPI=ON",
66+
build_type: "Release"
67+
}
5368
- {
5469
name: "macOS-Release",
5570
os: macos-latest,
56-
cmake_opts: "-DALSOFT_REQUIRE_COREAUDIO=ON",
71+
cmake_opts: "-DALSOFT_REQUIRE_COREAUDIO=ON \
72+
-DALSOFT_TESTS=ON",
73+
build_type: "Release"
74+
}
75+
- {
76+
name: "iOS-Release",
77+
os: macos-latest,
78+
cmake_opts: "-GXcode \
79+
-DCMAKE_SYSTEM_NAME=iOS \
80+
-DALSOFT_REQUIRE_COREAUDIO=ON \
81+
-DALSOFT_UTILS=OFF \
82+
-DALSOFT_EXAMPLES=OFF \
83+
-DALSOFT_TESTS=OFF \
84+
-DALSOFT_INSTALL=OFF \
85+
\"-DCMAKE_OSX_ARCHITECTURES=arm64\"",
5786
build_type: "Release"
5887
}
5988
- {
@@ -65,7 +94,8 @@ jobs:
6594
-DALSOFT_REQUIRE_PORTAUDIO=ON \
6695
-DALSOFT_REQUIRE_PULSEAUDIO=ON \
6796
-DALSOFT_REQUIRE_JACK=ON \
68-
-DALSOFT_REQUIRE_PIPEWIRE=ON",
97+
-DALSOFT_REQUIRE_PIPEWIRE=ON \
98+
-DALSOFT_TESTS=ON",
6999
deps_cmdline: "sudo apt update && sudo apt-get install -qq \
70100
libpulse-dev \
71101
portaudio19-dev \
@@ -76,9 +106,35 @@ jobs:
76106
libdbus-1-dev",
77107
build_type: "Release"
78108
}
79-
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+
}
80127
steps:
81-
- uses: actions/checkout@v1
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
82138
83139
- name: Install Dependencies
84140
shell: bash
@@ -97,8 +153,14 @@ jobs:
97153
run: |
98154
cmake --build build --config ${{matrix.config.build_type}}
99155
100-
- name: Create Archive
101-
if: ${{ matrix.config.os == 'windows-latest' }}
156+
- name: Test
157+
shell: bash
158+
run: |
159+
cd build
160+
ctest
161+
162+
- name: Set up Windows artifacts
163+
if: ${{ contains(matrix.config.name, 'Win') }}
102164
shell: bash
103165
run: |
104166
cd build
@@ -107,10 +169,73 @@ jobs:
107169
cp ${{matrix.config.build_type}}/soft_oal.dll archive
108170
cp ${{matrix.config.build_type}}/OpenAL32.dll archive/router
109171
110-
- name: Upload Archive
111-
# Upload package as an artifact of this workflow.
112-
uses: actions/[email protected]
113-
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') }}
114183
with:
115184
name: soft_oal-${{matrix.config.name}}
116185
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/[email protected]
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}}/alsoftrc.sample -o "build/release/OpenALSoft/Win32/alsoft.ini"
220+
curl https://raw.githubusercontent.com/${{github.repository}}/${{github.ref_name}}/alsoftrc.sample -o "build/release/OpenALSoft/Win64/alsoft.ini"
221+
cp "build/soft_oal-Win32-Release/soft_oal.dll" "build/release/OpenALSoft/Win32/OpenAL32.dll"
222+
cp "build/soft_oal-Win64-Release/soft_oal.dll" "build/release/OpenALSoft/Win64/OpenAL32.dll"
223+
cp -r "build/release/OpenALSoft" "build/release/OpenALSoft+HRTF"
224+
cp "build/release/OpenALSoft+HRTF/Win32/alsoft.ini" "build/release/OpenALSoft+HRTF/Documentation/alsoft.ini"
225+
curl https://raw.githubusercontent.com/${{github.repository}}/${{github.ref_name}}/configs/HRTF/alsoft.ini -o "build/release/OpenALSoft+HRTF/Win32/alsoft.ini"
226+
cp "build/release/OpenALSoft+HRTF/Win32/alsoft.ini" "build/release/OpenALSoft+HRTF/Win64/alsoft.ini"
227+
228+
- name: Compress artifacts
229+
run: |
230+
cd build/release
231+
7z a OpenALSoft.zip ./OpenALSoft/*
232+
7z a OpenALSoft+HRTF.zip ./OpenALSoft+HRTF/*
233+
234+
- name: GitHub pre-release
235+
uses: "Sweeistaken/[email protected]"
236+
with:
237+
repo_token: "${{secrets.GITHUB_TOKEN}}"
238+
automatic_release_tag: "latest"
239+
prerelease: true
240+
title: "OpenAL Soft v${{needs.build.outputs.CommitTag}}-${{needs.build.outputs.CommitHashShort}}"
241+
files: "build/release/*"

0 commit comments

Comments
 (0)