Skip to content

Commit 131d10d

Browse files
committed
Add newest SDL_audiolib as git subrepo
1 parent 3a04b2e commit 131d10d

File tree

263 files changed

+96596
-1274
lines changed

Some content is hidden

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

263 files changed

+96596
-1274
lines changed

SDL_audiolib/.clang-format

Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
---
2+
Language: Cpp
3+
BasedOnStyle: WebKit
4+
Standard: Latest
5+
6+
AccessModifierOffset: -4
7+
AlignAfterOpenBracket: AlwaysBreak
8+
AlignConsecutiveAssignments: None
9+
AlignConsecutiveDeclarations: None
10+
AlignConsecutiveMacros: None
11+
AlignEscapedNewlines: Left
12+
AlignOperands: AlignAfterOperator
13+
AlignTrailingComments: false
14+
AllowAllArgumentsOnNextLine: true
15+
AllowAllParametersOfDeclarationOnNextLine: true
16+
AllowShortBlocksOnASingleLine: Never
17+
AllowShortCaseLabelsOnASingleLine: false
18+
AllowShortFunctionsOnASingleLine: None
19+
AllowShortIfStatementsOnASingleLine: Never
20+
AllowShortLambdasOnASingleLine: All
21+
AllowShortLoopsOnASingleLine: false
22+
AlwaysBreakAfterReturnType: None
23+
AlwaysBreakBeforeMultilineStrings: true
24+
AlwaysBreakTemplateDeclarations: Yes
25+
BinPackArguments: true
26+
BinPackParameters: true
27+
BraceWrapping:
28+
AfterCaseLabel: false
29+
AfterClass: true
30+
AfterControlStatement: MultiLine
31+
AfterEnum: true
32+
AfterExternBlock: false
33+
AfterFunction: true
34+
AfterNamespace: false
35+
AfterStruct: true
36+
AfterUnion: true
37+
BeforeCatch: false
38+
BeforeElse: false
39+
IndentBraces: false
40+
SplitEmptyFunction: false
41+
SplitEmptyNamespace: false
42+
SplitEmptyRecord: false
43+
BreakBeforeBinaryOperators: NonAssignment
44+
BreakBeforeBraces: Custom
45+
BreakBeforeTernaryOperators: true
46+
BreakConstructorInitializers: BeforeComma
47+
BreakInheritanceList: AfterColon
48+
BreakStringLiterals: true
49+
ColumnLimit: 100
50+
CommentPragmas: ''
51+
CompactNamespaces: false
52+
ConstructorInitializerIndentWidth: 4
53+
ContinuationIndentWidth: 4
54+
Cpp11BracedListStyle: true
55+
DeriveLineEnding: false
56+
DerivePointerAlignment: false
57+
FixNamespaceComments: true
58+
ForEachMacros:
59+
- BOOST_FOREACH
60+
- Q_FOREACH
61+
- foreach
62+
IncludeBlocks: Preserve
63+
IndentCaseLabels: false
64+
IndentGotoLabels: false
65+
IndentPPDirectives: None
66+
IndentWidth: 4
67+
IndentWrappedFunctionNames: false
68+
KeepEmptyLinesAtTheStartOfBlocks: false
69+
MacroBlockBegin: ''
70+
MacroBlockEnd: ''
71+
MaxEmptyLinesToKeep: 1
72+
NamespaceIndentation: None
73+
PackConstructorInitializers: Never
74+
PointerAlignment: Left
75+
ReflowComments: true
76+
SortIncludes: true
77+
SortUsingDeclarations: true
78+
SpaceAfterCStyleCast: false
79+
SpaceAfterLogicalNot: false
80+
SpaceAfterTemplateKeyword: true
81+
SpaceBeforeAssignmentOperators: true
82+
SpaceBeforeCpp11BracedList: false
83+
SpaceBeforeCtorInitializerColon: true
84+
SpaceBeforeInheritanceColon: false
85+
SpaceBeforeParens: ControlStatements
86+
SpaceBeforeRangeBasedForLoopColon: true
87+
SpaceBeforeSquareBrackets: false
88+
SpaceInEmptyBlock: true
89+
SpaceInEmptyParentheses: false
90+
SpacesBeforeTrailingComments: 1
91+
SpacesInAngles: false
92+
SpacesInCStyleCastParentheses: false
93+
SpacesInConditionalStatement: false
94+
SpacesInParentheses: false
95+
SpacesInSquareBrackets: false
96+
TabWidth: 4
97+
UseCRLF: false
98+
UseTab: Never
99+
...

SDL_audiolib/.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/resampler/* linguist-vendored

SDL_audiolib/.github/workflows/ci.yml

Lines changed: 192 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,192 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
build:
9+
strategy:
10+
matrix:
11+
config:
12+
- {os: ubuntu-latest, bass_os: linux, CC: gcc-9, CXX: g++-9}
13+
- {os: macos-10.15, bass_os: osx, CC: clang, CXX: clang++}
14+
15+
runs-on: ${{ matrix.config.os }}
16+
17+
env:
18+
CC: ${{ matrix.config.CC }}
19+
CXX: ${{ matrix.config.CXX }}
20+
CFLAGS: -isystem /usr/local/include
21+
CXXFLAGS: -isystem /usr/local/include
22+
CMAKE_GENERATOR: Ninja
23+
BASS_VERSION: 24
24+
BASSMIDI_VERSION: 24
25+
FSYNTH_VERSION: 2.1.5
26+
ADLMIDI_VERSION: 1.5.0.1
27+
WILDMIDI_VERSION: 0.4.4
28+
29+
steps:
30+
- run: sudo apt-get update
31+
if: runner.os == 'Linux'
32+
33+
- name: Install Linux deps
34+
if: runner.os == 'Linux'
35+
run: sudo apt-get install -y
36+
libmodplug-dev
37+
libmpcdec-dev
38+
libmpg123-dev
39+
libopenmpt-dev
40+
libopusfile-dev
41+
libsamplerate0-dev
42+
libsdl-dev
43+
libsdl2-dev
44+
libsndfile1-dev
45+
libsoxr-dev
46+
libvorbis-dev
47+
libwildmidi-dev
48+
libxmp-dev
49+
ninja-build
50+
51+
- name: Install macOS deps
52+
if: runner.os == 'macOS'
53+
run: brew install
54+
fluidsynth
55+
glib
56+
libmodplug
57+
libopenmpt
58+
libsamplerate
59+
libsndfile
60+
libsoxr
61+
libvorbis
62+
libxmp
63+
mpg123
64+
musepack
65+
ninja
66+
opusfile
67+
pkg-config
68+
sdl
69+
sdl2
70+
71+
- name: Install FluidSynth
72+
if: runner.os == 'Linux'
73+
working-directory: /tmp
74+
run: |
75+
wget -nv "https://github.com/FluidSynth/fluidsynth/archive/v$FSYNTH_VERSION.tar.gz" -O- | tar xz
76+
mkdir "fluidsynth-$FSYNTH_VERSION"/build
77+
cd "fluidsynth-$FSYNTH_VERSION"/build
78+
cmake \
79+
-DLIB_INSTALL_DIR=lib \
80+
..
81+
sudo cmake --build . --target install -v
82+
83+
- name: Install BASSMIDI
84+
working-directory: /tmp
85+
run: |
86+
wget -nv "http://uk.un4seen.com/files/bass$BASS_VERSION-${{ matrix.config.bass_os }}.zip"
87+
mkdir bass
88+
cd bass
89+
unzip "../bass$BASS_VERSION-${{ matrix.config.bass_os }}.zip"
90+
sudo cp bass.h /usr/local/include/
91+
if [[ ${{ runner.os }} == "Linux" ]]; then
92+
sudo cp x64/libbass.so /usr/local/lib/
93+
else
94+
sudo cp libbass.dylib /usr/local/lib/
95+
fi
96+
cd ..
97+
wget -nv "http://uk.un4seen.com/files/bassmidi$BASSMIDI_VERSION-${{ matrix.config.bass_os }}.zip"
98+
mkdir bassmidi
99+
cd bassmidi
100+
unzip "../bassmidi$BASSMIDI_VERSION-${{ matrix.config.bass_os }}.zip"
101+
sudo cp bassmidi.h /usr/local/include/
102+
if [[ ${{ runner.os }} == "Linux" ]]; then
103+
sudo cp x64/libbassmidi.so /usr/local/lib/
104+
else
105+
sudo cp libbassmidi.dylib /usr/local/lib/
106+
fi
107+
108+
- name: Install libADLMIDI
109+
working-directory: /tmp
110+
run: |
111+
wget -nv "https://github.com/Wohlstand/libADLMIDI/archive/v$ADLMIDI_VERSION.tar.gz" -O- | tar xz
112+
cd "libADLMIDI-$ADLMIDI_VERSION"
113+
mkdir build
114+
cd build
115+
cmake \
116+
-DlibADLMIDI_SHARED=on \
117+
-DlibADLMIDI_STATIC=off \
118+
-DEXAMPLE_SDL2_AUDIO=off \
119+
..
120+
sudo cmake --build . --target install -v
121+
122+
- name: Install WildMIDI
123+
if: runner.os == 'macOS'
124+
working-directory: /tmp
125+
run: |
126+
wget -nv "https://github.com/Mindwerks/wildmidi/releases/download/wildmidi-$WILDMIDI_VERSION/wildmidi-$WILDMIDI_VERSION-macosx.tar.gz" -O- | tar xz
127+
cd "wildmidi-$WILDMIDI_VERSION-macosx"
128+
sudo cp -a *.dylib /usr/local/lib/
129+
sudo cp wildmidi_lib.h /usr/local/include/
130+
131+
- uses: actions/checkout@v2
132+
- name: Build (SDL 1)
133+
run: |
134+
mkdir build_sdl1
135+
cd build_sdl1
136+
if [[ ${{ runner.os }} == "Linux" ]]; then
137+
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig"
138+
fi
139+
if [[ ${{ runner.os }} == "macOS" ]]; then
140+
export CMAKE_PREFIX_PATH="/usr/local/opt/readline"
141+
fi
142+
cmake \
143+
-DUSE_SDL1=ON \
144+
-DUSE_RESAMP_SRC=ON \
145+
-DUSE_RESAMP_SOXR=ON \
146+
-DUSE_DEC_OPENMPT=ON \
147+
-DUSE_DEC_XMP=ON \
148+
-DUSE_DEC_MODPLUG=ON \
149+
-DUSE_DEC_MPG123=ON \
150+
-DUSE_DEC_SNDFILE=ON \
151+
-DUSE_DEC_LIBVORBIS=ON \
152+
-DUSE_DEC_LIBOPUSFILE=ON \
153+
-DUSE_DEC_MUSEPACK=ON \
154+
-DUSE_DEC_FLUIDSYNTH=ON \
155+
-DUSE_DEC_BASSMIDI=ON \
156+
-DUSE_DEC_WILDMIDI=ON \
157+
-DUSE_DEC_ADLMIDI=ON \
158+
-DENABLE_SDLMIXER_EMU=OFF \
159+
-DBUILD_EXAMPLE=ON \
160+
..
161+
sudo cmake --build . --target install -v
162+
163+
- name: Build (SDL 2)
164+
run: |
165+
mkdir build_sdl2
166+
cd build_sdl2
167+
if [[ ${{ runner.os }} == "Linux" ]]; then
168+
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig"
169+
fi
170+
if [[ ${{ runner.os }} == "macOS" ]]; then
171+
export CMAKE_PREFIX_PATH="/usr/local/opt/readline"
172+
fi
173+
cmake \
174+
-DUSE_SDL1=OFF \
175+
-DUSE_RESAMP_SRC=ON \
176+
-DUSE_RESAMP_SOXR=ON \
177+
-DUSE_DEC_OPENMPT=ON \
178+
-DUSE_DEC_XMP=ON \
179+
-DUSE_DEC_MODPLUG=ON \
180+
-DUSE_DEC_MPG123=ON \
181+
-DUSE_DEC_SNDFILE=ON \
182+
-DUSE_DEC_LIBVORBIS=ON \
183+
-DUSE_DEC_LIBOPUSFILE=ON \
184+
-DUSE_DEC_MUSEPACK=ON \
185+
-DUSE_DEC_FLUIDSYNTH=ON \
186+
-DUSE_DEC_BASSMIDI=ON \
187+
-DUSE_DEC_WILDMIDI=ON \
188+
-DUSE_DEC_ADLMIDI=ON \
189+
-DENABLE_SDLMIXER_EMU=OFF \
190+
-DBUILD_EXAMPLE=ON \
191+
..
192+
sudo cmake --build . --target install -v

SDL_audiolib/.gitignore

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
*.[oa]
2+
*.so
3+
*.so.*
4+
/doc
5+
/gh-pages
6+
CMakeCache.txt
7+
CMakeFiles/
8+
cmake_install.cmake
9+
SDL_audiolib.pc
10+
aulib_config.h
11+
aulib_export.h
12+
Makefile

SDL_audiolib/.gitrepo

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
; DO NOT EDIT (unless you know what you are doing)
2+
;
3+
; This subdirectory is a git "subrepo", and this file is maintained by the
4+
; git-subrepo command. See https://github.com/git-commands/git-subrepo#readme
5+
;
6+
[subrepo]
7+
remote = https://github.com/realnc/SDL_audiolib.git
8+
branch = master
9+
commit = 0087190eb4cec9fae96b36a88369ab1587ca9abc
10+
parent = 63d2b0fac354bffb6b7130465fa72b69b01fb713
11+
method = merge
12+
cmdver = 0.4.3

0 commit comments

Comments
 (0)