Skip to content

Commit

Permalink
core: support for more audio formats
Browse files Browse the repository at this point in the history
  • Loading branch information
MSOB7YY committed Oct 20, 2023
1 parent dcdf50f commit 97c0140
Showing 1 changed file with 71 additions and 11 deletions.
82 changes: 71 additions & 11 deletions lib/core/constants.dart
Original file line number Diff line number Diff line change
Expand Up @@ -163,30 +163,89 @@ const kDefaultDateTimeStrings = {
};

/// Extensions used to filter audio files
const List<String> kAudioFileExtensions = [
const Set<String> kAudioFileExtensions = {
'.m4a',
'.mp3',
'.webm',
'.ogg',
'.wav',
'.flac',
'.aac',
'.3gp',
'.ac3',
'.opus',
'.m4b',
'.pk',
'.8svx',
'.aa',
'.aax',
'.act',
'.aiff',
'.alac',
'.amr',
'.ape',
'.au',
'.awb',
'.cda',
'.dss',
'.dts',
'.flac',
'.m4a',
'.m4b',
'.dvf',
'.gsm',
'.iklax',
'.ivs',
'.m4p',
'.mmf',
'.movpkg',
'.mid',
'.mp3',
'.ogg',
'.opus',
'.mpc',
'.msv',
'.nmf',
'.oga',
'.mogg',
'.ra',
'.rm',
'.raw',
'.rf64',
'.sln',
'.tak',
'.wav',
'.tta',
'.voc',
'.vox',
'.wma',
];
'.wv',
'.aif',
'.aifc',
'.amz',
'.awc',
'.bwf',
'.caf',
'.dct',
'.dff',
'.dsf',
'.fap',
'.flp',
'.its',
'.kar',
'.kfn',
'.m3u',
'.m4r',
'.mac',
'.mka',
'.mlp',
'.mp2',
'.mpp',
'.oma',
'.qcp',
'.rmi',
'.snd',
'.spx',
'.ts',
'.uax',
'.xmz',
};

/// Extensions used to filter video files
const List<String> kVideoFilesExtensions = [
const Set<String> kVideoFilesExtensions = {
'mp4',
'mkv',
'avi',
Expand Down Expand Up @@ -217,7 +276,8 @@ const List<String> kVideoFilesExtensions = [
'mpeg1',
'mpeg2',
'mpeg4'
];
};

const kDefaultOrientations = <DeviceOrientation>[DeviceOrientation.portraitUp, DeviceOrientation.portraitDown];
const kDefaultLang = NamidaLanguage(
code: "en_US",
Expand Down

0 comments on commit 97c0140

Please sign in to comment.