Skip to content

Commit

Permalink
Rekordbox library feature that reads tracks, playlists and folders fr…
Browse files Browse the repository at this point in the history
…om removable devices
  • Loading branch information
ehendrikd committed May 24, 2019
1 parent f5d7e7d commit 83e1b45
Show file tree
Hide file tree
Showing 22 changed files with 4,842 additions and 2 deletions.
Binary file added .DS_Store
Binary file not shown.
14 changes: 13 additions & 1 deletion build/depends.py
Original file line number Diff line number Diff line change
Expand Up @@ -486,6 +486,15 @@ def sources(self, build):
def configure(self, build, conf):
build.env.Append(CPPPATH="#lib/replaygain")

# For Rekordbox removable device binary database file parsing
class Kaitai(Dependence):

def sources(self, build):
return ["lib/kaitai/kaitaistream.cpp"]

def configure(self, build, conf):
build.env.Append(CPPDEFINES=['KS_STR_ENCODING_NONE'])
build.env.Append(CPPPATH="#lib/kaitai")

class Ebur128Mit(Dependence):
INTERNAL_PATH = 'lib/libebur128'
Expand Down Expand Up @@ -1043,6 +1052,9 @@ def sources(self, build):

"src/library/itunes/itunesfeature.cpp",
"src/library/traktor/traktorfeature.cpp",

"src/library/rekordbox/rekordboxfeature.cpp",
"src/library/rekordbox/rekordbox_pdb.cpp",

"src/library/sidebarmodel.cpp",
"src/library/library.cpp",
Expand Down Expand Up @@ -1543,7 +1555,7 @@ def depends(self, build):
FidLib, SndFile, FLAC, OggVorbis, OpenGL, TagLib, ProtoBuf,
Chromaprint, RubberBand, SecurityFramework, CoreServices, IOKit,
QtScriptByteArray, Reverb, FpClassify, PortAudioRingBuffer, LAME,
QueenMaryDsp, OSXFilePathUrlBackport]
QueenMaryDsp, OSXFilePathUrlBackport, Kaitai]

def post_dependency_check_configure(self, build, conf):
"""Sets up additional things in the Environment that must happen
Expand Down
Binary file added lib/.DS_Store
Binary file not shown.
7 changes: 7 additions & 0 deletions lib/kaitai/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Copyright 2016-2019 Kaitai Project: MIT license

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
16 changes: 16 additions & 0 deletions lib/kaitai/custom_decoder.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#ifndef KAITAI_CUSTOM_DECODER_H
#define KAITAI_CUSTOM_DECODER_H

#include <string>

namespace kaitai {

class custom_decoder {
public:
virtual ~custom_decoder() {};
virtual std::string decode(std::string src) = 0;
};

}

#endif
Loading

0 comments on commit 83e1b45

Please sign in to comment.