driver/file.cpp: add AAC file type, add .dts extension

Origin commit data
------------------
Commit: 77f28b6825
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2013-12-10 (Tue, 10 Dec 2013)
This commit is contained in:
[CST] Focus
2013-12-10 16:56:46 +04:00
parent 77763fc5cb
commit 0b8d2bea20
2 changed files with 5 additions and 4 deletions

View File

@@ -42,8 +42,8 @@
/* ATTENTION: the array file_extension_list MUST BE SORTED ASCENDING (cf. sort, man bsearch) - otherwise bsearch will not work correctly! */ /* ATTENTION: the array file_extension_list MUST BE SORTED ASCENDING (cf. sort, man bsearch) - otherwise bsearch will not work correctly! */
const char * const file_extension_list[] = const char * const file_extension_list[] =
{ {
"asf", "avi", "bmp", "cdr", "crw", "aac", "asf", "avi", "bmp", "cdr", "crw",
"flac", "gif", "imu", "jpeg", "jpg", "dts", "flac", "gif", "imu", "jpeg", "jpg",
"m2a", "m3u", "mkv", "mp2", "mp3", "m2a", "m3u", "mkv", "mp2", "mp3",
"mpa", "ogg", "pls", "png", "sh", "mpa", "ogg", "pls", "png", "sh",
"txt", "url", "wav", "xml" "txt", "url", "wav", "xml"
@@ -52,8 +52,8 @@ const char * const file_extension_list[] =
const CFile::FileType file_type_list[] = const CFile::FileType file_type_list[] =
{ {
CFile::FILE_ASF , CFile::FILE_AVI , CFile::FILE_PICTURE , CFile::FILE_CDR , CFile::FILE_PICTURE , CFile::FILE_AAC , CFile::FILE_ASF , CFile::FILE_AVI , CFile::FILE_PICTURE , CFile::FILE_CDR , CFile::FILE_PICTURE ,
CFile::FILE_FLAC , CFile::FILE_PICTURE , CFile::STREAM_PICTURE, CFile::FILE_PICTURE , CFile::FILE_PICTURE , CFile::FILE_WAV , CFile::FILE_FLAC , CFile::FILE_PICTURE , CFile::STREAM_PICTURE, CFile::FILE_PICTURE , CFile::FILE_PICTURE ,
CFile::FILE_MP3 , CFile::FILE_PLAYLIST , CFile::FILE_MKV , CFile::FILE_MP3 , CFile::FILE_MP3 , CFile::FILE_MP3 , CFile::FILE_PLAYLIST , CFile::FILE_MKV , CFile::FILE_MP3 , CFile::FILE_MP3 ,
CFile::FILE_MP3 , CFile::FILE_OGG , CFile::FILE_PLAYLIST, CFile::FILE_PICTURE , CFile::FILE_TEXT , CFile::FILE_MP3 , CFile::FILE_OGG , CFile::FILE_PLAYLIST, CFile::FILE_PICTURE , CFile::FILE_TEXT ,
CFile::FILE_TEXT , CFile::STREAM_AUDIO , CFile::FILE_WAV , CFile::FILE_XML CFile::FILE_TEXT , CFile::STREAM_AUDIO , CFile::FILE_WAV , CFile::FILE_XML

View File

@@ -52,6 +52,7 @@ public:
enum FileType enum FileType
{ {
FILE_UNKNOWN = 0, FILE_UNKNOWN = 0,
FILE_AAC,
FILE_AVI, FILE_AVI,
FILE_ASF, FILE_ASF,
FILE_DIR, FILE_DIR,