diff options
author | chai <chaifix@163.com> | 2018-11-18 23:44:40 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-11-18 23:44:40 +0800 |
commit | 8cb74178c2b8e5883a1181af687fa8cfc0c6e5da (patch) | |
tree | f56c536a029148df35bd4e82034a9b563a2381df /src/libjin/Audio/je_source.cpp | |
parent | f0f340dec7821cee103ab9267ef941a917ef4dc4 (diff) |
*修改目录为小写
Diffstat (limited to 'src/libjin/Audio/je_source.cpp')
-rw-r--r-- | src/libjin/Audio/je_source.cpp | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/src/libjin/Audio/je_source.cpp b/src/libjin/Audio/je_source.cpp deleted file mode 100644 index 6bc1f4f..0000000 --- a/src/libjin/Audio/je_source.cpp +++ /dev/null @@ -1,30 +0,0 @@ -#include "../core/je_configuration.h" -#if defined(jin_audio) - -#include <cstring> - -#include "je_source.h" - -namespace JinEngine -{ - namespace Audio - { - - static int check_header(const void *data, int size, const char *str, int offset) { - int len = strlen(str); - return (size >= offset + len) && !memcmp((char*)data + offset, str, len); - } - - SourceType Source::getType(const void* mem, int size) - { - if(check_header(mem, size, "WAVE", 8)) - return SourceType::WAV; - if(check_header(mem, size, "OggS", 0)) - return SourceType::OGG; - return SourceType::INVALID; - } - - } // namespace Audio -} // namespace JinEngine - -#endif // jin_audio |