-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add newest SDL_audiolib as git subrepo
- Loading branch information
Showing
263 changed files
with
96,596 additions
and
1,274 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
--- | ||
Language: Cpp | ||
BasedOnStyle: WebKit | ||
Standard: Latest | ||
|
||
AccessModifierOffset: -4 | ||
AlignAfterOpenBracket: AlwaysBreak | ||
AlignConsecutiveAssignments: None | ||
AlignConsecutiveDeclarations: None | ||
AlignConsecutiveMacros: None | ||
AlignEscapedNewlines: Left | ||
AlignOperands: AlignAfterOperator | ||
AlignTrailingComments: false | ||
AllowAllArgumentsOnNextLine: true | ||
AllowAllParametersOfDeclarationOnNextLine: true | ||
AllowShortBlocksOnASingleLine: Never | ||
AllowShortCaseLabelsOnASingleLine: false | ||
AllowShortFunctionsOnASingleLine: None | ||
AllowShortIfStatementsOnASingleLine: Never | ||
AllowShortLambdasOnASingleLine: All | ||
AllowShortLoopsOnASingleLine: false | ||
AlwaysBreakAfterReturnType: None | ||
AlwaysBreakBeforeMultilineStrings: true | ||
AlwaysBreakTemplateDeclarations: Yes | ||
BinPackArguments: true | ||
BinPackParameters: true | ||
BraceWrapping: | ||
AfterCaseLabel: false | ||
AfterClass: true | ||
AfterControlStatement: MultiLine | ||
AfterEnum: true | ||
AfterExternBlock: false | ||
AfterFunction: true | ||
AfterNamespace: false | ||
AfterStruct: true | ||
AfterUnion: true | ||
BeforeCatch: false | ||
BeforeElse: false | ||
IndentBraces: false | ||
SplitEmptyFunction: false | ||
SplitEmptyNamespace: false | ||
SplitEmptyRecord: false | ||
BreakBeforeBinaryOperators: NonAssignment | ||
BreakBeforeBraces: Custom | ||
BreakBeforeTernaryOperators: true | ||
BreakConstructorInitializers: BeforeComma | ||
BreakInheritanceList: AfterColon | ||
BreakStringLiterals: true | ||
ColumnLimit: 100 | ||
CommentPragmas: '' | ||
CompactNamespaces: false | ||
ConstructorInitializerIndentWidth: 4 | ||
ContinuationIndentWidth: 4 | ||
Cpp11BracedListStyle: true | ||
DeriveLineEnding: false | ||
DerivePointerAlignment: false | ||
FixNamespaceComments: true | ||
ForEachMacros: | ||
- BOOST_FOREACH | ||
- Q_FOREACH | ||
- foreach | ||
IncludeBlocks: Preserve | ||
IndentCaseLabels: false | ||
IndentGotoLabels: false | ||
IndentPPDirectives: None | ||
IndentWidth: 4 | ||
IndentWrappedFunctionNames: false | ||
KeepEmptyLinesAtTheStartOfBlocks: false | ||
MacroBlockBegin: '' | ||
MacroBlockEnd: '' | ||
MaxEmptyLinesToKeep: 1 | ||
NamespaceIndentation: None | ||
PackConstructorInitializers: Never | ||
PointerAlignment: Left | ||
ReflowComments: true | ||
SortIncludes: true | ||
SortUsingDeclarations: true | ||
SpaceAfterCStyleCast: false | ||
SpaceAfterLogicalNot: false | ||
SpaceAfterTemplateKeyword: true | ||
SpaceBeforeAssignmentOperators: true | ||
SpaceBeforeCpp11BracedList: false | ||
SpaceBeforeCtorInitializerColon: true | ||
SpaceBeforeInheritanceColon: false | ||
SpaceBeforeParens: ControlStatements | ||
SpaceBeforeRangeBasedForLoopColon: true | ||
SpaceBeforeSquareBrackets: false | ||
SpaceInEmptyBlock: true | ||
SpaceInEmptyParentheses: false | ||
SpacesBeforeTrailingComments: 1 | ||
SpacesInAngles: false | ||
SpacesInCStyleCastParentheses: false | ||
SpacesInConditionalStatement: false | ||
SpacesInParentheses: false | ||
SpacesInSquareBrackets: false | ||
TabWidth: 4 | ||
UseCRLF: false | ||
UseTab: Never | ||
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/resampler/* linguist-vendored |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,192 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
pull_request: | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
matrix: | ||
config: | ||
- {os: ubuntu-latest, bass_os: linux, CC: gcc-9, CXX: g++-9} | ||
- {os: macos-10.15, bass_os: osx, CC: clang, CXX: clang++} | ||
|
||
runs-on: ${{ matrix.config.os }} | ||
|
||
env: | ||
CC: ${{ matrix.config.CC }} | ||
CXX: ${{ matrix.config.CXX }} | ||
CFLAGS: -isystem /usr/local/include | ||
CXXFLAGS: -isystem /usr/local/include | ||
CMAKE_GENERATOR: Ninja | ||
BASS_VERSION: 24 | ||
BASSMIDI_VERSION: 24 | ||
FSYNTH_VERSION: 2.1.5 | ||
ADLMIDI_VERSION: 1.5.0.1 | ||
WILDMIDI_VERSION: 0.4.4 | ||
|
||
steps: | ||
- run: sudo apt-get update | ||
if: runner.os == 'Linux' | ||
|
||
- name: Install Linux deps | ||
if: runner.os == 'Linux' | ||
run: sudo apt-get install -y | ||
libmodplug-dev | ||
libmpcdec-dev | ||
libmpg123-dev | ||
libopenmpt-dev | ||
libopusfile-dev | ||
libsamplerate0-dev | ||
libsdl-dev | ||
libsdl2-dev | ||
libsndfile1-dev | ||
libsoxr-dev | ||
libvorbis-dev | ||
libwildmidi-dev | ||
libxmp-dev | ||
ninja-build | ||
|
||
- name: Install macOS deps | ||
if: runner.os == 'macOS' | ||
run: brew install | ||
fluidsynth | ||
glib | ||
libmodplug | ||
libopenmpt | ||
libsamplerate | ||
libsndfile | ||
libsoxr | ||
libvorbis | ||
libxmp | ||
mpg123 | ||
musepack | ||
ninja | ||
opusfile | ||
pkg-config | ||
sdl | ||
sdl2 | ||
|
||
- name: Install FluidSynth | ||
if: runner.os == 'Linux' | ||
working-directory: /tmp | ||
run: | | ||
wget -nv "https://github.com/FluidSynth/fluidsynth/archive/v$FSYNTH_VERSION.tar.gz" -O- | tar xz | ||
mkdir "fluidsynth-$FSYNTH_VERSION"/build | ||
cd "fluidsynth-$FSYNTH_VERSION"/build | ||
cmake \ | ||
-DLIB_INSTALL_DIR=lib \ | ||
.. | ||
sudo cmake --build . --target install -v | ||
- name: Install BASSMIDI | ||
working-directory: /tmp | ||
run: | | ||
wget -nv "http://uk.un4seen.com/files/bass$BASS_VERSION-${{ matrix.config.bass_os }}.zip" | ||
mkdir bass | ||
cd bass | ||
unzip "../bass$BASS_VERSION-${{ matrix.config.bass_os }}.zip" | ||
sudo cp bass.h /usr/local/include/ | ||
if [[ ${{ runner.os }} == "Linux" ]]; then | ||
sudo cp x64/libbass.so /usr/local/lib/ | ||
else | ||
sudo cp libbass.dylib /usr/local/lib/ | ||
fi | ||
cd .. | ||
wget -nv "http://uk.un4seen.com/files/bassmidi$BASSMIDI_VERSION-${{ matrix.config.bass_os }}.zip" | ||
mkdir bassmidi | ||
cd bassmidi | ||
unzip "../bassmidi$BASSMIDI_VERSION-${{ matrix.config.bass_os }}.zip" | ||
sudo cp bassmidi.h /usr/local/include/ | ||
if [[ ${{ runner.os }} == "Linux" ]]; then | ||
sudo cp x64/libbassmidi.so /usr/local/lib/ | ||
else | ||
sudo cp libbassmidi.dylib /usr/local/lib/ | ||
fi | ||
- name: Install libADLMIDI | ||
working-directory: /tmp | ||
run: | | ||
wget -nv "https://github.com/Wohlstand/libADLMIDI/archive/v$ADLMIDI_VERSION.tar.gz" -O- | tar xz | ||
cd "libADLMIDI-$ADLMIDI_VERSION" | ||
mkdir build | ||
cd build | ||
cmake \ | ||
-DlibADLMIDI_SHARED=on \ | ||
-DlibADLMIDI_STATIC=off \ | ||
-DEXAMPLE_SDL2_AUDIO=off \ | ||
.. | ||
sudo cmake --build . --target install -v | ||
- name: Install WildMIDI | ||
if: runner.os == 'macOS' | ||
working-directory: /tmp | ||
run: | | ||
wget -nv "https://github.com/Mindwerks/wildmidi/releases/download/wildmidi-$WILDMIDI_VERSION/wildmidi-$WILDMIDI_VERSION-macosx.tar.gz" -O- | tar xz | ||
cd "wildmidi-$WILDMIDI_VERSION-macosx" | ||
sudo cp -a *.dylib /usr/local/lib/ | ||
sudo cp wildmidi_lib.h /usr/local/include/ | ||
- uses: actions/checkout@v2 | ||
- name: Build (SDL 1) | ||
run: | | ||
mkdir build_sdl1 | ||
cd build_sdl1 | ||
if [[ ${{ runner.os }} == "Linux" ]]; then | ||
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig" | ||
fi | ||
if [[ ${{ runner.os }} == "macOS" ]]; then | ||
export CMAKE_PREFIX_PATH="/usr/local/opt/readline" | ||
fi | ||
cmake \ | ||
-DUSE_SDL1=ON \ | ||
-DUSE_RESAMP_SRC=ON \ | ||
-DUSE_RESAMP_SOXR=ON \ | ||
-DUSE_DEC_OPENMPT=ON \ | ||
-DUSE_DEC_XMP=ON \ | ||
-DUSE_DEC_MODPLUG=ON \ | ||
-DUSE_DEC_MPG123=ON \ | ||
-DUSE_DEC_SNDFILE=ON \ | ||
-DUSE_DEC_LIBVORBIS=ON \ | ||
-DUSE_DEC_LIBOPUSFILE=ON \ | ||
-DUSE_DEC_MUSEPACK=ON \ | ||
-DUSE_DEC_FLUIDSYNTH=ON \ | ||
-DUSE_DEC_BASSMIDI=ON \ | ||
-DUSE_DEC_WILDMIDI=ON \ | ||
-DUSE_DEC_ADLMIDI=ON \ | ||
-DENABLE_SDLMIXER_EMU=OFF \ | ||
-DBUILD_EXAMPLE=ON \ | ||
.. | ||
sudo cmake --build . --target install -v | ||
- name: Build (SDL 2) | ||
run: | | ||
mkdir build_sdl2 | ||
cd build_sdl2 | ||
if [[ ${{ runner.os }} == "Linux" ]]; then | ||
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig" | ||
fi | ||
if [[ ${{ runner.os }} == "macOS" ]]; then | ||
export CMAKE_PREFIX_PATH="/usr/local/opt/readline" | ||
fi | ||
cmake \ | ||
-DUSE_SDL1=OFF \ | ||
-DUSE_RESAMP_SRC=ON \ | ||
-DUSE_RESAMP_SOXR=ON \ | ||
-DUSE_DEC_OPENMPT=ON \ | ||
-DUSE_DEC_XMP=ON \ | ||
-DUSE_DEC_MODPLUG=ON \ | ||
-DUSE_DEC_MPG123=ON \ | ||
-DUSE_DEC_SNDFILE=ON \ | ||
-DUSE_DEC_LIBVORBIS=ON \ | ||
-DUSE_DEC_LIBOPUSFILE=ON \ | ||
-DUSE_DEC_MUSEPACK=ON \ | ||
-DUSE_DEC_FLUIDSYNTH=ON \ | ||
-DUSE_DEC_BASSMIDI=ON \ | ||
-DUSE_DEC_WILDMIDI=ON \ | ||
-DUSE_DEC_ADLMIDI=ON \ | ||
-DENABLE_SDLMIXER_EMU=OFF \ | ||
-DBUILD_EXAMPLE=ON \ | ||
.. | ||
sudo cmake --build . --target install -v |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
*.[oa] | ||
*.so | ||
*.so.* | ||
/doc | ||
/gh-pages | ||
CMakeCache.txt | ||
CMakeFiles/ | ||
cmake_install.cmake | ||
SDL_audiolib.pc | ||
aulib_config.h | ||
aulib_export.h | ||
Makefile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
; DO NOT EDIT (unless you know what you are doing) | ||
; | ||
; This subdirectory is a git "subrepo", and this file is maintained by the | ||
; git-subrepo command. See https://github.com/git-commands/git-subrepo#readme | ||
; | ||
[subrepo] | ||
remote = https://github.com/realnc/SDL_audiolib.git | ||
branch = master | ||
commit = 0087190eb4cec9fae96b36a88369ab1587ca9abc | ||
parent = 63d2b0fac354bffb6b7130465fa72b69b01fb713 | ||
method = merge | ||
cmdver = 0.4.3 |
Oops, something went wrong.