Skip to content

Commit aab313e

Browse files
authored
Merge pull request #12 from AlwinEsch/final-matrix-change
Final Matrix release changes (icon add, description text, version increase)
2 parents 8f747da + c41d4b9 commit aab313e

File tree

4 files changed

+28
-20
lines changed

4 files changed

+28
-20
lines changed

.gitignore

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,18 @@ obj-x86_64-linux-gnu/
2626
# KDevelop 4
2727
*.kdev4
2828

29-
# Visual Studio
30-
.vs/
31-
3229
# gedit
3330
*~
3431

3532
# CLion
3633
/.idea
3734

38-
# clion
39-
.idea/
35+
# commonly used editors
36+
# vim
37+
*.swp
38+
39+
# to prevent add after a "git format-patch VALUE" and "git add ." call
40+
/*.patch
41+
42+
# to prevent add if project code opened by Visual Studio over CMake file
43+
.vs/

audiodecoder.dumb/addon.xml.in

Lines changed: 9 additions & 3 deletions
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.dumb"
4-
version="2.1.0"
4+
version="2.1.1"
55
name="DUMB Audio Decoder"
66
provider-name="spiff">
77
<requires>@ADDON_DEPENDS@</requires>
@@ -11,8 +11,14 @@
1111
extension=".it|.xm|.s3m"
1212
library_@PLATFORM@="@LIBRARY_FILENAME@"/>
1313
<extension point="xbmc.addon.metadata">
14-
<summary lang="en">DUMB Audio Decoder</summary>
15-
<description lang="en">DUMB Audio Decoder</description>
14+
<summary lang="en">Dynamic Universal Music Bibliotheque</summary>
15+
<description lang="en">DUMB is a module audio renderer library. It reads module files and outputs audio that can be dumped to the actual audio playback library.
16+
17+
On Kodi Supports playback of the following module formats:
18+
- IT (Impulse Tracker)
19+
- XM (Fasttracker II)
20+
- S3M (Scream Tracker 3)
21+
</description>
1622
<platform>@PLATFORM@</platform>
1723
</extension>
1824
</addon>

audiodecoder.dumb/icon.png

27.2 KB
Loading

src/DumbCodec.cpp

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -114,11 +114,11 @@ class ATTRIBUTE_HIDDEN CDumbCodec : public kodi::addon::CInstanceAudioDecoder
114114
unload_duh(module);
115115
}
116116

117-
virtual bool Init(const std::string& filename, unsigned int filecache,
118-
int& channels, int& samplerate,
119-
int& bitspersample, int64_t& totaltime,
120-
int& bitrate, AEDataFormat& format,
121-
std::vector<AEChannel>& channellist) override
117+
bool Init(const std::string& filename, unsigned int filecache,
118+
int& channels, int& samplerate,
119+
int& bitspersample, int64_t& totaltime,
120+
int& bitrate, AEDataFormat& format,
121+
std::vector<AEChannel>& channellist) override
122122
{
123123
kodi::vfs::CFile file;
124124
if (!file.OpenFile(filename,0))
@@ -179,7 +179,7 @@ class ATTRIBUTE_HIDDEN CDumbCodec : public kodi::addon::CInstanceAudioDecoder
179179
return true;
180180
}
181181

182-
virtual int ReadPCM(uint8_t* buffer, int size, int& actualsize) override
182+
int ReadPCM(uint8_t* buffer, int size, int& actualsize) override
183183
{
184184
int rendered = duh_render(sr, 16, 0, 1.0,
185185
65536.0/48000.0,
@@ -189,7 +189,7 @@ class ATTRIBUTE_HIDDEN CDumbCodec : public kodi::addon::CInstanceAudioDecoder
189189
return 0;
190190
}
191191

192-
virtual int64_t Seek(int64_t time) override
192+
int64_t Seek(int64_t time) override
193193
{
194194
return time;
195195
}
@@ -203,15 +203,13 @@ class ATTRIBUTE_HIDDEN CDumbCodec : public kodi::addon::CInstanceAudioDecoder
203203
class ATTRIBUTE_HIDDEN CMyAddon : public kodi::addon::CAddonBase
204204
{
205205
public:
206-
CMyAddon() { }
207-
virtual ADDON_STATUS CreateInstance(int instanceType, std::string instanceID, KODI_HANDLE instance, KODI_HANDLE& addonInstance) override
206+
CMyAddon() = default;
207+
ADDON_STATUS CreateInstance(int instanceType, std::string instanceID, KODI_HANDLE instance, KODI_HANDLE& addonInstance) override
208208
{
209209
addonInstance = new CDumbCodec(instance);
210210
return ADDON_STATUS_OK;
211211
}
212-
virtual ~CMyAddon()
213-
{
214-
}
212+
virtual ~CMyAddon() = default;
215213
};
216214

217215

0 commit comments

Comments
 (0)