diff --git a/ext/libclementine-remote/remotecontrolmessages.proto b/ext/libclementine-remote/remotecontrolmessages.proto index 141b78f5d..2389a5a26 100644 --- a/ext/libclementine-remote/remotecontrolmessages.proto +++ b/ext/libclementine-remote/remotecontrolmessages.proto @@ -109,6 +109,7 @@ message SongMetadata { WAVPACK = 14; SPC = 15; VGM = 16; + APE = 17; STREAM = 99; } diff --git a/src/core/mpris2.cpp b/src/core/mpris2.cpp index 9f9d4737f..7056d5bcb 100644 --- a/src/core/mpris2.cpp +++ b/src/core/mpris2.cpp @@ -238,6 +238,7 @@ QStringList Mpris2::SupportedMimeTypes() const { << "audio/ogg" << "audio/vnd.rn-realaudio" << "audio/vorbis" + << "audio/x-ape" << "audio/x-flac" << "audio/x-mp3" << "audio/x-mpeg" diff --git a/src/core/song.cpp b/src/core/song.cpp index df68a8cc4..01b320fe9 100644 --- a/src/core/song.cpp +++ b/src/core/song.cpp @@ -456,6 +456,8 @@ QString Song::TextForFiletype(FileType type) { return QObject::tr("SNES SPC700"); case Song::Type_VGM: return QObject::tr("VGM"); + case Song::Type_APE: + return QObject::tr("Monkey's Audio"); case Song::Type_Stream: return QObject::tr("Stream"); @@ -469,6 +471,7 @@ QString Song::TextForFiletype(FileType type) { bool Song::IsFileLossless() const { switch (filetype()) { case Song::Type_Aiff: + case Song::Type_APE: case Song::Type_Flac: case Song::Type_OggFlac: case Song::Type_Wav: diff --git a/src/library/libraryquery.cpp b/src/library/libraryquery.cpp index 4a44689b0..0ebc3ddb0 100644 --- a/src/library/libraryquery.cpp +++ b/src/library/libraryquery.cpp @@ -46,6 +46,7 @@ const QMap kFiletypeId = QMap( {"cdda", Song::Type_Cdda}, {"spc700", Song::Type_Spc}, {"vgm", Song::Type_VGM}, + {"ape", Song::Type_APE}, {"stream", Song::Type_Stream}, {"unknown", Song::Type_Unknown}});