upd: add modplayer

This commit is contained in:
Mar0xy 2023-11-02 23:14:36 +01:00
parent 3a95c5b18d
commit a8b4689501
No known key found for this signature in database
GPG key ID: 56569BBE47D2C828
7 changed files with 753 additions and 1 deletions

View file

@ -17,6 +17,7 @@ export const FILE_TYPE_BROWSERSAFE = [
'image/bmp',
'image/tiff',
'image/x-icon',
'image/jxl',
// OggS
'audio/opus',
@ -48,6 +49,56 @@ export const FILE_TYPE_BROWSERSAFE = [
'audio/x-flac',
'audio/vnd.wave',
];
export const FILE_TYPE_TRACKER_MODULES = [
'audio/mod',
'audio/x-mod',
'audio/s3m',
'audio/x-s3m',
'audio/xm',
'audio/x-xm',
'audio/it',
'audio/x-it',
];
export const FILE_EXT_TRACKER_MODULES = [
'mod',
's3m',
'xm',
'it',
'mptm',
'stm',
'nst',
'm15',
'stk',
'wow',
'ult',
'669',
'mtm',
'med',
'far',
'mdl',
'ams',
'dsm',
'amf',
'okt',
'dmf',
'ptm',
'psm',
'mt2',
'dbm',
'digi',
'imf',
'j2b',
'gdm',
'umx',
'plm',
'mo3',
'xpk',
'ppm',
'mmcmp',
];
/*
https://github.com/sindresorhus/file-type/blob/main/supported.js
https://github.com/sindresorhus/file-type/blob/main/core.js