Audio播放逻辑
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
#include <cstring>
|
||||
#include <string_view>
|
||||
enum class FileType {
|
||||
MUSIC,
|
||||
AUDIO,
|
||||
VIDEO,
|
||||
IMG,
|
||||
ERRORTYPE
|
||||
@@ -64,7 +64,7 @@ private:
|
||||
}
|
||||
public:
|
||||
static FileType GetFileType(const path& filepath) {
|
||||
if (IsMusic(filepath)) return FileType::MUSIC;
|
||||
if (IsMusic(filepath)) return FileType::AUDIO;
|
||||
if (IsVideo(filepath)) return FileType::VIDEO;
|
||||
if (IsImg(filepath)) return FileType::IMG;
|
||||
return FileType::ERRORTYPE;
|
||||
|
||||
Reference in New Issue
Block a user