Add SID support (libsidplay required)

This commit is contained in:
badda71
2019-03-03 22:32:53 +01:00
parent 8ad176ca1d
commit 878a38039b
7 changed files with 175 additions and 4 deletions

View File

@@ -9,6 +9,7 @@
#include "opus.h"
#include "vorbis.h"
#include "wav.h"
#include "sid.h"
/**
* Obtain file type string from file_types enum.
@@ -24,7 +25,8 @@ const char* fileToStr(enum file_types ft)
"FLAC",
"VORBIS",
"OPUS",
"MP3"
"MP3",
"SID"
};
return file_types_str[ft];
@@ -84,6 +86,12 @@ enum file_types getFileType(const char *file)
errno = FILE_NOT_SUPPORTED;
break;
// "PSID" or "RSID"
case 0x44495350:
case 0x44495352:
file_type=FILE_TYPE_SID;
break;
default:
/*