Skip to content
Permalink
Browse files

Fixes for APE filetype.

  • Loading branch information...
smithjd15 committed Feb 15, 2019
1 parent f6ba37d commit bd89a1d2ded7177888779b9bc55f32e85b271ef5
@@ -109,6 +109,7 @@ message SongMetadata {
WAVPACK = 14;
SPC = 15;
VGM = 16;
APE = 17;
STREAM = 99;
}

@@ -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"
@@ -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:
@@ -46,6 +46,7 @@ const QMap<QString, Song::FileType> kFiletypeId = QMap<QString, Song::FileType>(
{"cdda", Song::Type_Cdda},
{"spc700", Song::Type_Spc},
{"vgm", Song::Type_VGM},
{"ape", Song::Type_APE},
{"stream", Song::Type_Stream},
{"unknown", Song::Type_Unknown}});

0 comments on commit bd89a1d

Please sign in to comment.
You can’t perform that action at this time.