Skip to content

Commit 7f554b9

Browse files
authored
Merge pull request #13 from AlwinEsch/Matrix-change
[Matrix] API related update and improvements
2 parents 99eabdf + 40063a2 commit 7f554b9

File tree

14 files changed

+391
-192
lines changed

14 files changed

+391
-192
lines changed

.clang-format

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
---
2+
# BasedOnStyle: LLVM
3+
AccessModifierOffset: -2
4+
AlignAfterOpenBracket: Align
5+
AlignConsecutiveAssignments: false
6+
AlignConsecutiveDeclarations: false
7+
AlignEscapedNewlines: DontAlign
8+
AlignOperands: true
9+
AlignTrailingComments: false
10+
AllowAllParametersOfDeclarationOnNextLine: true
11+
AllowShortBlocksOnASingleLine: false
12+
AllowShortCaseLabelsOnASingleLine: false
13+
AllowShortFunctionsOnASingleLine: InlineOnly
14+
AllowShortIfStatementsOnASingleLine: false
15+
AllowShortLoopsOnASingleLine: false
16+
AlwaysBreakAfterDefinitionReturnType: None
17+
AlwaysBreakAfterReturnType: None
18+
AlwaysBreakBeforeMultilineStrings: false
19+
AlwaysBreakTemplateDeclarations: true
20+
BinPackArguments: true
21+
BinPackParameters: false
22+
BreakBeforeBinaryOperators: None
23+
BreakBeforeBraces: Allman
24+
BreakBeforeTernaryOperators: true
25+
BreakConstructorInitializersBeforeComma: false
26+
BreakConstructorInitializers: BeforeColon
27+
BreakAfterJavaFieldAnnotations: false
28+
BreakStringLiterals: true
29+
ColumnLimit: 100
30+
CommentPragmas: '^ IWYU pragma:'
31+
ConstructorInitializerAllOnOneLineOrOnePerLine: true
32+
ConstructorInitializerIndentWidth: 2
33+
ContinuationIndentWidth: 4
34+
Cpp11BracedListStyle: true
35+
DerivePointerAlignment: false
36+
DisableFormat: false
37+
ExperimentalAutoDetectBinPacking: false
38+
ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ]
39+
IncludeBlocks: Regroup
40+
IncludeCategories:
41+
- Regex: '^<[a-z0-9_]+>$'
42+
Priority: 3
43+
- Regex: '^<(assert|complex|ctype|errno|fenv|float|inttypes|iso646|limits|locale|math|setjmp|signal|stdalign|stdarg|stdatomic|stdbool|stddef|stdint|stdio|stdlib|stdnoreturn|string|tgmath|threads|time|uchar|wchar|wctype)\.h>$'
44+
Priority: 3
45+
- Regex: '^<'
46+
Priority: 3
47+
- Regex: '^["<](kodi|p8-platform)\/.*\.h[">]$'
48+
Priority: 2
49+
- Regex: '.*'
50+
Priority: 1
51+
IncludeIsMainRegex: '$'
52+
IndentCaseLabels: true
53+
IndentWidth: 2
54+
IndentWrappedFunctionNames: false
55+
JavaScriptQuotes: Leave
56+
JavaScriptWrapImports: true
57+
KeepEmptyLinesAtTheStartOfBlocks: true
58+
MacroBlockBegin: ''
59+
MacroBlockEnd: ''
60+
MaxEmptyLinesToKeep: 2
61+
NamespaceIndentation: None
62+
ObjCBlockIndentWidth: 2
63+
ObjCSpaceAfterProperty: false
64+
ObjCSpaceBeforeProtocolList: true
65+
PenaltyBreakBeforeFirstCallParameter: 19
66+
PenaltyBreakComment: 300
67+
PenaltyBreakFirstLessLess: 120
68+
PenaltyBreakString: 1000
69+
PenaltyExcessCharacter: 1000000
70+
PenaltyReturnTypeOnItsOwnLine: 60000
71+
PointerAlignment: Left
72+
ReflowComments: false
73+
SortIncludes: true
74+
SpaceAfterCStyleCast: false
75+
SpaceAfterTemplateKeyword: false
76+
SpaceBeforeAssignmentOperators: true
77+
SpaceBeforeParens: ControlStatements
78+
SpaceInEmptyParentheses: false
79+
SpacesBeforeTrailingComments: 1
80+
SpacesInAngles: false
81+
SpacesInContainerLiterals: true
82+
SpacesInCStyleCastParentheses: false
83+
SpacesInParentheses: false
84+
SpacesInSquareBrackets: false
85+
Standard: Cpp11
86+
TabWidth: 8
87+
UseTab: Never
88+
...

.travis.yml

Lines changed: 23 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ language: cpp
33
#
44
# Define the build matrix
55
#
6-
# Travis defaults to building on Ubuntu Precise when building on
7-
# Linux. We need Trusty in order to get up to date versions of
6+
# Travis defaults to building on Ubuntu Trusty when building on
7+
# Linux. We need Xenial in order to get up to date versions of
88
# cmake and g++.
99
#
1010
env:
@@ -21,17 +21,31 @@ matrix:
2121
dist: xenial
2222
sudo: required
2323
compiler: clang
24+
- os: linux
25+
dist: bionic
26+
sudo: required
27+
compiler: gcc
28+
env: DEBIAN_BUILD=true
29+
30+
before_install:
31+
- if [[ $DEBIAN_BUILD == true ]]; then sudo add-apt-repository -y ppa:team-xbmc/xbmc-nightly; fi
32+
- if [[ $DEBIAN_BUILD == true ]]; then sudo apt-get update; fi
33+
- if [[ $DEBIAN_BUILD == true ]]; then sudo apt-get install fakeroot; fi
2434

2535
#
2636
# The addon source is automatically checked out in $TRAVIS_BUILD_DIR,
2737
# we'll put the Kodi source on the same level
2838
#
2939
before_script:
30-
- cd $TRAVIS_BUILD_DIR/..
31-
- git clone --branch master --depth=1 https://github.com/xbmc/xbmc.git
32-
- cd ${app_id} && mkdir build && cd build
33-
- mkdir -p definition/${app_id}
34-
- echo ${app_id} $TRAVIS_BUILD_DIR $TRAVIS_COMMIT > definition/${app_id}/${app_id}.txt
35-
- cmake -DADDONS_TO_BUILD=${app_id} -DADDON_SRC_PREFIX=$TRAVIS_BUILD_DIR/.. -DADDONS_DEFINITION_DIR=$TRAVIS_BUILD_DIR/build/definition -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=$TRAVIS_BUILD_DIR/../xbmc/addons -DPACKAGE_ZIP=1 $TRAVIS_BUILD_DIR/../xbmc/cmake/addons
40+
- if [[ $DEBIAN_BUILD != true ]]; then cd $TRAVIS_BUILD_DIR/..; fi
41+
- if [[ $DEBIAN_BUILD != true ]]; then git clone --branch master --depth=1 https://github.com/xbmc/xbmc.git; fi
42+
- if [[ $DEBIAN_BUILD != true ]]; then cd ${app_id} && mkdir build && cd build; fi
43+
- if [[ $DEBIAN_BUILD != true ]]; then mkdir -p definition/${app_id}; fi
44+
- if [[ $DEBIAN_BUILD != true ]]; then echo ${app_id} $TRAVIS_BUILD_DIR $TRAVIS_COMMIT > definition/${app_id}/${app_id}.txt; fi
45+
- if [[ $DEBIAN_BUILD != true ]]; then cmake -DADDONS_TO_BUILD=${app_id} -DADDON_SRC_PREFIX=$TRAVIS_BUILD_DIR/.. -DADDONS_DEFINITION_DIR=$TRAVIS_BUILD_DIR/build/definition -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=$TRAVIS_BUILD_DIR/../xbmc/addons -DPACKAGE_ZIP=1 $TRAVIS_BUILD_DIR/../xbmc/cmake/addons; fi
46+
- if [[ $DEBIAN_BUILD == true ]]; then wget https://raw.githubusercontent.com/xbmc/xbmc/master/xbmc/addons/kodi-addon-dev-kit/tools/debian-addon-package-test.sh && chmod +x ./debian-addon-package-test.sh; fi
47+
- if [[ $DEBIAN_BUILD == true ]]; then sudo apt-get build-dep $TRAVIS_BUILD_DIR; fi
3648

37-
script: make
49+
script:
50+
- if [[ $DEBIAN_BUILD != true ]]; then make; fi
51+
- if [[ $DEBIAN_BUILD == true ]]; then ./debian-addon-package-test.sh $TRAVIS_BUILD_DIR; fi

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ include_directories(${KODI_INCLUDE_DIR}/..
1212
${FLUIDSYNTH_INCLUDE_DIRS})
1313

1414
set(FLUID_SOURCES src/FluidDecoder.cpp)
15+
set(FLUID_HEADERS src/FluidDecoder.h)
1516

1617
set(DEPLIBS ${FLUIDSYNTH_LIBRARIES})
1718

audiodecoder.fluidsynth/addon.xml.in

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<addon
33
id="audiodecoder.fluidsynth"
4-
version="2.2.2"
4+
version="3.0.0"
55
name="FluidSynth MIDI Audio Decoder"
66
provider-name="spiff">
77
<requires>@ADDON_DEPENDS@</requires>
@@ -12,7 +12,9 @@
1212
extension=".mid|.kar"
1313
library_@PLATFORM@="@LIBRARY_FILENAME@"/>
1414
<extension point="xbmc.addon.metadata">
15+
<summary lang="de_DE">Ein SoundFont-Synthesizer</summary>
1516
<summary lang="en_GB">A SoundFont Synthesizer</summary>
17+
<description lang="de_DE">FluidSynth ist ein Echtzeit-Software-Synthesizer, der auf den SoundFont 2-Spezifikationen basiert und eine weit verbreitete Verbreitung erreicht hat. FluidSynth selbst verfügt nicht über eine grafische Benutzeroberfläche, wird jedoch aufgrund seiner leistungsstarken API von mehreren Anwendungen verwendet und hat sogar den Weg in eingebettete Systeme gefunden und wird in einigen mobilen Apps verwendet.</description>
1618
<description lang="en_GB">FluidSynth is a real-time software synthesizer based on the SoundFont 2 specifications and has reached widespread distribution. FluidSynth itself does not have a graphical user interface, but due to its powerful API several applications utilize it and it has even found its way onto embedded systems and is used in some mobile apps.</description>
1719
<platform>@PLATFORM@</platform>
1820
<license>GPL-2.0-or-later</license>
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# Kodi Media Center language file
2+
# Addon Name: FluidSynth MIDI Audio Decoder
3+
# Addon id: audiodecoder.fluidsynth
4+
# Addon Provider: Team Kodi
5+
msgid ""
6+
msgstr ""
7+
"Project-Id-Version: KODI Addons\n"
8+
"Report-Msgid-Bugs-To: https://github.com/xbmc/audiodecoder.fluidsynth/issues/\n"
9+
"POT-Creation-Date: YEAR-MO-DA HO:MI+ZONE\n"
10+
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
11+
"Last-Translator: Kodi Translation Team\n"
12+
"Language-Team: German (Germany) (http://www.transifex.com/projects/p/kodi-addons/language/de_DE/)\n"
13+
"MIME-Version: 1.0\n"
14+
"Content-Type: text/plain; charset=UTF-8\n"
15+
"Content-Transfer-Encoding: 8bit\n"
16+
"Language: de_DE\n"
17+
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
18+
19+
#[Consistency] Make terms, settings names, brands and other minutiae, consistent throughout file.
20+
#[Capitalization] Avoid capitalizing every second word. See http://grammarist.com/capitalization/
21+
#For example, prefer wording as "This new string" instead of "This New String".
22+
#[Referencing] If a suitable string already exists, reuse it, making a note of where it's used!
23+
#[Description / location] For example, "#. Description of some setting" used on "#: xbmc/addons/guidialogaddoninfo.cpp"
24+
#When writing a description or setting, refer to a setting name in quotes. See existing entries for guidance.
25+
#For example, "Press \"OK\" for \"All seasons\"" instead of "Press OK for All seasons" after first word.
26+
27+
msgctxt "#30000"
28+
msgid "Soundfont"
29+
msgstr "Soundfont"
30+
31+
msgctxt "#30001"
32+
msgid "To use FluidSynth you need a working sound font."
33+
msgstr "Um FluidSynth verwenden zu können, benötigen Sie einen funktionierenden Soundfont."
34+
35+
msgctxt "#30002"
36+
msgid "Scan MIDI for title"
37+
msgstr "MIDI nach Titel durchsuchen"
38+
39+
msgctxt "#30003"
40+
msgid "Search in MIDI file for information to get an exact title."
41+
msgstr "Suchen Sie in der MIDI-Datei nach Informationen, um einen genauen Titel zu erhalten."
42+
43+
msgctxt "#30010"
44+
msgid "SoundFont audio decode"
45+
msgstr "SoundFont-Audio-Decodierung"
46+
47+
msgctxt "#30011"
48+
msgid "Soundfont not configured, check add-on settings."
49+
msgstr "Soundfont nicht konfiguriert, überprüfen Sie die Einstellungen dieses addons."
Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,49 @@
1+
# Kodi Media Center language file
2+
# Addon Name: FluidSynth MIDI Audio Decoder
3+
# Addon id: audiodecoder.fluidsynth
4+
# Addon Provider: Team Kodi
15
msgid ""
26
msgstr ""
3-
"Project-Id-Version: XBMC Main Translation Project (Frodo)\n"
4-
"Report-Msgid-Bugs-To: http://trac.xbmc.org/\n"
7+
"Project-Id-Version: KODI Addons\n"
8+
"Report-Msgid-Bugs-To: https://github.com/xbmc/audiodecoder.fluidsynth/issues/\n"
59
"POT-Creation-Date: YEAR-MO-DA HO:MI+ZONE\n"
610
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
7-
"Last-Translator: XBMC Translation Team\n"
8-
"Language-Team: English (http://www.transifex.com/projects/p/XBMC-Main-Frodo/language/en/)\n"
11+
"Last-Translator: Kodi Translation Team\n"
12+
"Language-Team: English (United Kingdom) (http://www.transifex.com/projects/p/kodi-addons/language/en_GB/)\n"
913
"MIME-Version: 1.0\n"
1014
"Content-Type: text/plain; charset=UTF-8\n"
1115
"Content-Transfer-Encoding: 8bit\n"
12-
"Language: en\n"
16+
"Language: en_GB\n"
1317
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
1418

19+
#[Consistency] Make terms, settings names, brands and other minutiae, consistent throughout file.
20+
#[Capitalization] Avoid capitalizing every second word. See http://grammarist.com/capitalization/
21+
#For example, prefer wording as "This new string" instead of "This New String".
22+
#[Referencing] If a suitable string already exists, reuse it, making a note of where it's used!
23+
#[Description / location] For example, "#. Description of some setting" used on "#: xbmc/addons/guidialogaddoninfo.cpp"
24+
#When writing a description or setting, refer to a setting name in quotes. See existing entries for guidance.
25+
#For example, "Press \"OK\" for \"All seasons\"" instead of "Press OK for All seasons" after first word.
26+
1527
msgctxt "#30000"
1628
msgid "Soundfont"
1729
msgstr ""
1830

1931
msgctxt "#30001"
20-
msgid "To use FluidSynth you need a working sound font"
32+
msgid "To use FluidSynth you need a working sound font."
2133
msgstr ""
2234

2335
msgctxt "#30002"
2436
msgid "Scan MIDI for title"
2537
msgstr ""
2638

2739
msgctxt "#30003"
28-
msgid "Search in MIDI file for information to get an exact title"
40+
msgid "Search in MIDI file for information to get an exact title."
2941
msgstr ""
3042

3143
msgctxt "#30010"
3244
msgid "SoundFont audio decode"
3345
msgstr ""
3446

3547
msgctxt "#30011"
36-
msgid "Soundfont not configured, check add-on settings"
48+
msgid "Soundfont not configured, check add-on settings."
3749
msgstr ""

debian/control

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Maintainer: Nobody <[email protected]>
44
Build-Depends: debhelper (>= 9.0.0), cmake, kodi-addon-dev, libfluidsynth-dev
55
Standards-Version: 4.1.2
66
Section: libs
7-
Homepage: http://kodi.tv
7+
Homepage: https://kodi.tv
88

99
Package: kodi-audiodecoder-fluidsynth
1010
Section: libs

debian/rules

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,7 @@
1313
dh $@ --parallel
1414

1515
override_dh_auto_configure:
16-
dh_auto_configure -- -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=1 -DUSE_LTO=1 -DSOUND_FONT=/usr/share/sounds/sf2/FluidR3_GM.sf2
17-
18-
override_dh_strip:
19-
dh_strip --dbg-package=kodi-audiodecoder-fluidsynth-dbg
16+
dh_auto_configure -- -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_SHARED_LIBS=1 -DUSE_LTO=1
2017

2118
override_dh_installdocs:
2219
dh_installdocs --link-doc=kodi-audiodecoder-fluidsynth

debian/source/format

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.0 (quilt)
1+
3.0 (native)
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
-DLIB_SUFFIX= -Denable-sdl2=0
1+
-DLIB_SUFFIX= -Denable-sdl2=0 -Denable-aufile=0 -DBUILD_SHARED_LIBS=0 -Denable-dbus=0 -Denable-ipv6=0 -Denable-jack=0 -Denable-ladspa=0 -Denable-libinstpatch=0 -Denable-libsndfile=0 -Denable-midishare=0 -Denable-opensles=0 -Denable-oboe=0 -Denable-network=0 -Denable-oss=0 -Denable-dsound=0 -Denable-waveout=0 -Denable-sdl2=0 -Denable-pkgconfig=1 -Denable-pulseaudio=0 -Denable-lash=0 -Denable-alsa=0 -Denable-systemd=0 -Denable-coreaudio=0 -Denable-coremidi=0 -Denable-framework=0 -Denable-dart=0
2+

0 commit comments

Comments
 (0)