Add taglib to project to get extra cover data(and possibly replace libgroove for this function). Remove oggs from accepted files until I can figure out cover data for them better. Add non-persisted field for this to audiotrack object and method to add this data to it in memory.

This commit is contained in:
Kevin Whitaker
2017-02-08 00:56:32 -05:00
parent 44df1cf607
commit 71a2cd6321
5 changed files with 58 additions and 2 deletions

View File

@@ -21,6 +21,7 @@
#define AUDIOTRACK_H
#include <Wt/Dbo/Dbo>
#include <taglib/tbytevector.h>
class AudioTrack
{
@@ -33,6 +34,10 @@ public:
std::string trackFingerprint;
std::string trackPath;
//Non-persisted data
TagLib::ByteVector coverArt;
std::string coverMimeType;
template<class Action>
void persist(Action& a)
{